Part Number Hot Search : 
TXMEGA2 74ABT833 CXA38 CD5368B 98010 C09AN SC26C562 STK5466
Product Description
Full Text Search
 

To Download W925C625 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  w925e/c625 8-bit cid microcontroller publication release date: july 4, 2005 - 1 - revision a10 table of contents- 1. general des cription ......................................................................................................... 2 2. features ....................................................................................................................... .......... 2 3. pin config uration .............................................................................................................. .4 4. pin descri ption................................................................................................................ ..... 5 5. block diagram .................................................................................................................. .... 7 6. functional desc ription.................................................................................................... 8 6.1 memory organization ..................................................................................................... 9 6.2 special function registers ........................................................................................... 12 6.3 initial state of registers................................................................................................ 32 6.4 instruction .................................................................................................................... .33 6.5 power mana gement...................................................................................................... 37 6.6 reset.......................................................................................................................... ... 38 6.7 interrupt...................................................................................................................... ... 38 6.8 programmable time rs/counters................................................................................... 41 6.9 serial po rt 1 .................................................................................................................. 45 6.10 comparat or ................................................................................................................... 47 6.11 dtmf gene rator........................................................................................................... 47 6.12 fsk gener ator.............................................................................................................. 48 6.13 i/o ports...................................................................................................................... .. 49 6.14 divider........................................................................................................................ ... 50 6.15 lcd............................................................................................................................ ... 51 6.16 calling identity de livery (c id)....................................................................................... 54 7. electrical chara cteristics......................................................................................... 68 7.1 maximum ra tings* ........................................................................................................ 68 7.2 recommended operatin g conditions .......................................................................... 68 7.3 dc characteri stics ........................................................................................................ 69 7.4 electrical characteristics ? gain control op -amplifier................................................. 70 7.5 ac characteristics ........................................................................................................ 71 8. package ........................................................................................................................ ......... 74 9. revision histor y ............................................................................................................... .75
w925e/c625 - 2 - 1. general description the w925e/c625 is an all in one single 8-bit micro-c ontroller with widely used calling identity delivery (cid) function. the 8-bit cpu core is based on th e 8051 family; therefore, all the instructions are compatible to the turbo 8051 series. the cid part consisted of fsk decoder, dtmf receiver, cpe* alert signal (cas) detector and ring detector. also built-in dtmf generator and fsk generator with baud rate 1200 bps (bits/sec). using w925e/c625 c an easily implement the cid adjunct box and the feature phone or short message service (sms) phone with cid function. the main features are listed in the next section. 2. features x application : the sms phone with cid function and cid adjunct box. x cpu : 8-bit micro-controller is similar to the 8051 family. - eeprom type operating voltage: c: depend on the operating vol. option. either 2.4 to 3.6v or 3.0 to 5.5v for operating. if 2.4 to 3.6v be selected, the c operating range is from 2.4 to 3.6v, else if 3.0 to 5.5v be selected, the c operating range is from 3.0 to 5.5v. cid: 3.0 to 5.5v. - mask type operating voltage: c: 2.2 to 5.5v. cid: 3.0 to 5.5v. x dual-clock operation: - main oscillator: 3.58mhz crystal for cid and dtmf function. and built-in rc oscillator. - sub oscillator: 32768hz crystal. - main and sub oscillators are enable/disable by bit control individually. x rom : 64k bytes internal flash eeprom/mask rom type. - up 64k bytes for program rom. - total 64k bytes for look-up table rom. x ram : - 256 bytes on chip scratch-pad ram. - 4k bytes on chip ram for movx instruction. - 224 bytes on chip lcd ram. x lcd : dot matrix control method. - 1792 dots: 56 segments x 32 common, 1/5 bias. x cid : - compatible with bellcore tr-nwt-000030 & sr-tsv-002476, british telecom(bt) sin227, u.k. cable communication association(cca) specification. - fsk modulator/demodulator: for bell 202 and itu-t v.23 fsk with 1200-baud rate. - cas detector: for dual tones of bellcore c as and bt idle state and loop state dual tone alert signal (dtas).
w925e/c625 publication release date: july 4, 2005 - 3 - revision a10 - dtmf generator/receiver; - ring detector: for line reversal for bt, ring burst for cca or ring signal for bellcore. - two independent op amps with adjustable gain for tip/ring and telephone hybrid connections. x i/o : 40 i/o pins. - p0: bit and byte addressable. i/o mode can be bit controlled. open drain type. - p1~p3: bit and byte addressable. pull high and i/o mode can be bit controlled. - p4 : byte addressable. pull high and i/o mode can be bit controlled. note: ?cpe*? customer premises equipment x power mode : - normal mode : normal operation - dual-clock slow operation mode : system is operated by the sub-oscillator (fosc=fs and fm is stopped) - idle mode : cpu hold. the clock to the cpu is halt ed, but the interrupt, timer and watchdog timer block work normally but cid function is disabled. - power down mode : all activity is completely stopped and power consumption is less than 1 a. x timer : 2 13/16-bit timers, or 8-bit auto-reload timers, that are timer0 and timer1. x watchdog timer: wdt can be programmed by the user to serve as a system monitor. x interrupt: 11 interrupt sources with two levels of priority. - 4 interrupts from int0, int1, int2 and int3. - 2 interrupts from timer0, timer1. - 1 interrupt from serial port. - 1 interrupt from cid. - 1 interrupt from 13/14-bit divider. - 1 interrupt from comparator. - 1 interrupt from watch dog timer. x divider: 13/14 bit divider, clock source from sub-oscill ator, therefore, divf set every 0.25/0.5 sec. x comparator: - comparator:1 analog input from vneg pin, 2 reference input pins, one is from vpos pin and another is from internal 1.0v regulator output. x serial port: - an 8-bit serial transceiver with sclk and sdata. x package: - 160pin qfp : the part numbers are w925e625 & W925C625 - lead free 160pin qfp: the part numbers are w925e625fg & w925g625
w925e/c625 - 4 - 3. pin configuration figure 3-1 shows the pin assignment. the package type is 160pin qfp. vss 109 vdd 110 rngdi 75 cap 74 vref 73 inp1 72 inn1 71 gcfb1 70 vad 65 vas 69 gcfb2 68 inn2 67 inp2 66 vss 77 test/mode 128 reset/vpp 129 p10 93 p11 94 p12 95 p13 96 p14 97 p15 98 p16 99 p17 100 p20 101 p21 102 p22 103 p23 104 p24 105 p25 106 p26 107 p27 108 buz 111 p30 112 p31 113 p32 114 p33 115 p34 116 p35 117 p36 118 p37 119 p40 120 rngrc 76 p07 85 p06 84 p05 83 p04 82 p03 81 p02 80 p01 79 p00 78 xout1 86 xin1 87 vdd 88 xin2 89 xout2 90 ea/data 91 dtmf/fsk 92 com31 64 com30 63 com29 62 com28 61 com27 60 com26 59 com25 58 com24 57 com23 56 com22 55 com21 54 com20 53 com19 52 com18 51 com17 50 com16 49 seg55 48 seg54 47 seg53 46 seg52 45 seg51 44 seg50 43 seg49 42 seg48 41 seg47 40 seg46 39 seg45 38 seg44 37 seg43 36 seg42 35 seg41 34 seg40 33 seg39 32 seg38 31 seg37 30 seg36 29 seg35 28 seg34 27 seg33 26 seg32 25 seg31 24 seg30 23 seg29 22 seg28 21 seg27 20 seg26 19 seg25 18 seg24 17 seg23 16 seg22 15 seg21 14 seg20 13 seg19 12 seg18 11 seg17 10 seg16 9 seg15 8 seg14 7 seg13 6 seg12 5 seg11 4 seg10 3 seg9 2 seg8 1 p41 121 p42/vneg 122 p43 123 p44/vpos 124 p45 125 p46 126 p47 127 dh2 130 dh1 131 vlcd1 132 vlcd2 133 vlcd3 134 vlcd4 135 vlcd5 136 com15 137 com14 138 com13 139 com12 140 com11 141 com10 142 com9 143 com8 144 com7 145 com6 146 com5 147 com4 148 com3 149 com2 150 com1 151 com0 152 seg0 153 seg1 154 seg2 155 seg3 156 seg4 157 seg5 158 seg6 159 seg7 160 w925e/c625 u? figure 3-1 w925e/c625 pin configuration
w925e/c625 publication release date: july 4, 2005 - 5 - revision a10 4. pin description symbol i/o description test/mode i/o test pin. in e version (eeprom type), it works as a mode pin to select programming mode. in c version (mask type), this pin with internal pull-low resistor. e a /data i,i/o set high for normal function. in e version, it works as data pin. in c version, this pin with internal pull-high resistor. reset /v pp i reset pin. a low pulse causes the whole chip reset. in e version, this pin work as v pp pin, which is a supply programming voltage. in c version, this pin with internal pull-high resistor. rngdi i ring detect input (schmitt trigger input). used for ring detection and line reversal detection. must main tain a voltage between vad and vas. rngrc o ring rc (open drain output and schmitt trigger input). used to set the time interval from the end of rngdi pin to the inactive condition of the rngon pin. an external resistor must connected to vad and a capacitor connected to v ss , the time interval is the rc time constant. cap o must be connected 0.1 f capacitor to v ss . vref o reference voltage. nominally, v dd /2 is used to bias the input of the gain control op-amp. gcfb1 o op-amp1 feed-back gain control signal. select the input gain by connecting this pin and the inn1 pin with feedback resistor. it is recommended that the op-amp1 be set to unity gain. inn1 i inverting input of the gain control op-amp1. inp1 i non-inverting input of the gain control op-amp1. gcfb2 o op-amp2 feed-back gain control signal. select the input gain by connecting this pin and the inn2 pin with feedback resistor. it is recommended that the op-amp2 be set to unity gain. inn2 i inverting input of the gain control op-amp2. inp2 i non-inverting input of the gain control op-amp2. vad i analog voltage supply. vas i analog ground. v dd i digital voltage supply. v ss i digital ground. xout1 o output pin for main-oscillator. conne cted to 3.58mhz crystal for cid function. xin1 i input pin for main-oscillator. connec ted to 3.58mhz crystal for cid function. xout2 o output pin for sub-oscillator. connec ted to 32.768khz crystal only. suggest to add an external capacitor about 10~30pf to ground (v ss ) for the accuracy of the oscillator.
w925e/c625 - 6 - pin description, continued symbol i/o description xin2 i input pin for sub-oscillator. connected to 32.768khz crystal only. suggest to add an external capacitor about 10~30pf to ground (v ss ) for the accuracy of the oscillator. dtmf/fsk o fte=0, dual-tone multi-frequency(dtmf) signal output fte=1, fsk signal output buz o buzzer output pin. if buzzer function is disabled, buz pin is in floating state. p00-p07 i/o input/output port0. port0 data can be bit controlled. the i/o mode is controlled by p0io register. port0 is ope n drain type when it is configured as output mode. p10-p17 i/o input/output port1 with pull high resistors. port1 data can be bit controlled. the i/o mode is controlled by p1io register. the p10-p13 and p14-p17 indicates the external interrupt pins(int2 and int3) p20-p27 i/o input/output port2 with pull high resistors. port2 data can be bit controlled. the i/o mode is controlled by p2io register. p30-p37 i/o input/output port3 with pull high resistors. port3 data can be bit controlled. the i/o mode is controlled by p3io regist er. the special function of port3 is referred to the description of p3 register. p40-p47 i/o contents are byte controlled. pull high and i/o mode can be bit controlled. the special function of p4 is referr ed to the description of p4 register. vpos, vneg i the comparator v+, v- analog input pi ns. share pin with p4.2 and p4.4 dh1,dh2 i connection terminals for lcd voltage doublers capacitor. vlcd1-5 i positive lcd voltage supplies terminals. seg0- seg55 o lcd segment output pins. com0- com31 o lcd common output pins.
w925e/c625 publication release date: july 4, 2005 - 7 - revision a10 5. block diagram fsk,cas (w91030) rngdi rngrc inp2 inn2 gcfb2 vref cap 8-bit c cide fske case s/p dclk data fd7~fd0 rng algo fdr fcd dtmf receiver dtmfh dtmfl dd3~dd0 p0 8 p1 8 p2 8 p3 8 p4 8 x i n 1 x o u t 1 x i n 2 x o u t 2 v d d v s s v a d v a s seg00 ~ seg55 com00 ~ com31 d h 1 d h 2 5 vlcd1 ~ vlcd5 internal cid and uc interface fdata d-latch dtmfd rngf algof fdrf dtmfdf fosc cash,casl inp1 inn1 gcfb1 caspt casat dtmfpt dtmfat ck r e s e t / v p p e a / d a t a dtmfe b u z d t m f / f s k test/mode rst f m dclk fsk modulator fsf
w925e/c625 - 8 - 6. functional description the w925e/c625 is an 8-bit micro-controller with ci d function. the 8-bit micro-control has the same instruction set as the 8051 family, with one ad dition: dec dptr (op-code a5h, the dptr is decreased by 1). in addition, the w925e/c625 c ontains on-chip 4k + 224 bytes movx ram. rom: there are 64k bytes eeprom/mask rom. the total 64k bytes eeprom/mask rom is used for program code. the completely 64k bytes eeprom /mask rom can be used for the look-up table memory. on-chip data ram: the w925e/c625 has 4k normal ram + 224 bytes of discontinuity lcd ram wh ich address is from 0000h to 0fffh + 2000h to 20feh. it only can be ac cessed by movx instruction; this on-chip ram is optional under software control. the 224 bytes of ram, which no appends to the 4k bytes ram, are used for lcd ram. the on-chip data ram is not used for executable program memory. there is no conflict or overlap among the 256 bytes scratch pad ram and the 4k bytes movx ram as they use different addressing modes and separate instructions. cid: the cid functions include the fsk decoder, c as detector, and dtmf decoder and ring detector. fsk modulator: support itu-t v.23 and bellcore 202 fsk transmit modulate signal dtmf modulator: the w925e/c625 built-in dual tone multi-frequency generator. i/o ports: the w925e/c625 has five 8-bit i/o ports giving 40 lines. port0 to port3 can be used as an 8-bit general i/o port with bit-addressable. the i/o mode of each port are controlled by pxio registers. port 1 to port 4 have internal pull high resistors enabled/di sabled by pxh registers. port0 is open-drain type in output mode. serial i/o port: the serial port, through p4.0 (sclk) and p4.1 (sdata ), is an 8-bit synchronous serial i/o interface. timers: the w925e/c625 has two 13/16-bit timers or 8 bi ts auto-reload timers. an independent watchdog timer is used as a system monitor or as a very long time period timer. a divider can produce the divider interrupt in every period of 0.5s or 0.25s. comparator: the w925e/c625 has an internal comparator with one external analog signal input path vneg and an external path vpos or a regulator voltage for the reference input ref1. lcd: the lcd display of 1792 dots is 1/5 bias with 56 segments and 32 commons. the lcd display of the lcd voltage is from internal regulator or external voltage source.
w925e/c625 publication release date: july 4, 2005 - 9 - revision a10 interrupts: the w925e/c625 provides 11 interrupt resources with two priority level, including 4 external interrupt sources, 2 timer interrupts, 1 cid interrupt, 1 divi der interrupt, 1 serial port interrupt, 1 comparator interrupt and 1 watchdog timer interrupt. power management: the w925e/c625 has idle and power down modes of operation. in the idle mode, the clock to the cpu core is stopped however t he functions of the timers, divider, cid and interrupts are active continuously. in the power down mode, both of t he system clock stop oscillating and the chip operation is completely stopped. power down mode is the state of the lowe st power consumption. 6.1 memory organization the w925e/c625 separates the memory into two separate sections, the program memory and the data memory. the program memory is used to stor e the instruction op-codes and look-up table data, while the data memory is used to store data or for memory mapped devices. program memory: the program memory on the w925e/c625 can be up to 64k bytes. the total 64k bytes eeprom/mask rom are used to store the op-codes and the whole 64k can be used to store look- up table data. 64k bytes eeprom / mask rom 0ffff 00000 figure 6-1 program memory map data memory: the w925e/c625 contains on-chip 4k + 224 byte s movx ram of data memory, which can only be accessed by movx instructions from the address 0000h to 0fffh and from 2000h to 20feh. in addition, the w925e/c625 has 256 bytes of on-chip sc ratchpad ram. this can be accessed either by direct addressing or by indirect addressing. there are also special function registers (sfrs), which can only be accessed by direct add ressing. since the scratchpad ram is only 256 bytes, it can be used only when data contents are sma ll. in the event that larger dat a contents are present, the only one selection is on-chip movx ram. the on-ch ip movx ram can only be accessed by a movx instruction. however, the on-ch ip ram has the fastest access ti mes. the memory map is shown figure 6-2 and figure 6-3 shows the sc ratchpad ram/register addressing.
w925e/c625 - 10 - 20feh 4k byte sram on chip lcdram0fe | | lcdram000 0000h 0fffh 2000h indirect addressing ram direct & indirect addressing ram sfrs direct addressing only 7fh 00h ffh 80h figure 6-2 memory map
w925e/c625 publication release date: july 4, 2005 - 11 - revision a10 ffh 80h 7fh 30h 2fh 2eh 2dh 2ch 2bh 2ah 29h 28h 27h 26h 25h 24h 23h 22h 21h 20h 1fh 18h 17h 10h 0fh 08h 07h 00h 78 79 7a 7b 7c 7d 7e 7f 70 71 72 73 74 75 76 77 68 69 6a 6b 6c 6d 6e 6f 60 61 62 63 64 65 66 67 58 59 5a 5b 5c 50 51 52 53 54 5d 5e 5f 55 56 57 48 49 4a 4b 4c 4d 4e 4f 40 41 42 43 44 45 46 47 38 39 3a 3b 3c 3d 3e 3f 30 31 32 33 34 35 36 37 28 29 2a 2b 2c 2d 2e 2f 20 21 22 23 24 25 26 27 18 19 1a 1b 1c 1d 1e 1f 10 11 12 13 14 15 16 17 08 09 0a 0b 0c 0d 0e 0f 00 01 02 03 04 05 06 07 indirect ram direct ram bank 3 bank 2 bank 1 bank 0 bit addressable 20h - 2fh figure 6-3 scratchpad ram/register addressing
w925e/c625 - 12 - 6.2 special function registers the w925e/c625 uses special function registers (sfr s) to control and monitor peripherals and their modes. the sfrs reside in the register locations 80-ffh an d accessed by direct addressing only. some of the sfrs are bit addressable. this is very useful in cases where one wishes to modify a particular bit without changing the others. the sfrs that are bi t addressable are those whose addresses end in 0 or 8. the list of sfrs is as follows. the table is condensed with eight locations per row. empty locations indicate that there are no registers at these addresses. the content of reserved bits or registers is not guaranteed. table 1 special function register location table f8 eip cidgd cidga f0 b e8 eie e0 acc d8 wdcon d0 psw c8 divc c0 scon1 sbuf1 regvc pmr status fsktc fsktb b8 ip dtmfg compr irc1 irc2 caspt casat b0 p3 cidr cidfg cidpcr fskdr dtmfdr dtmfpt dtmfat a8 ie p4io a0 p2 hb p4h p4 98 p1ef p1h p2h p3h 90 p1 exif p1sr p0io p1io p2io p3io 88 tcon tmod tl0 tl1 th0 th1 ckcon1 ckcon2 80 p0 sp dpl dph dpl1 dph1 dps pcon note: the sfrs in the column with dark borders are bit-addressable.
w925e/c625 publication release date: july 4, 2005 - 13 - revision a10 a brief description of the sfrs now follows. port 0 (initial=ffh,input mode) bit: 7 6 5 4 3 2 1 0 p0.7 p0.6 p0.5 p0.4 p0.3 p0.2 p0.1 p0.0 mnemonic: p0 address: 80h p0: p0 can be selected as input or output mode by the p0io register, at initial reset, p0io is set to ffh, p0 is used as input mode. when p0io is set to 0, the p0 is used as cmos open drain mode. stack pointer (initial=07h) bit: 7 6 5 4 3 2 1 0 sp.7 sp.6 sp.5 sp.4 sp.3 sp.2 sp.1 sp.0 mnemonic: sp address: 81h sp: the stack pointer stores the scratchpad ram address where the stack begins. in other words, it always points to the top of the stack. data pointer low (initial=00h) bit: 7 6 5 4 3 2 1 0 dpl.7 dpl.6 dpl.5 dpl.4 d pl.3 dpl.2 dpl.1 dpl.0 mnemonic: dpl address: 82h dpl: this is the low byte of the standard 8052 16-bit data pointer. data pointer high (initial=00h) bit: 7 6 5 4 3 2 1 0 dph.7 dph.6 dph.5 dph.4 d ph.3 dph.2 dph.1 dph.0 mnemonic: dph address: 83h dph: this is the high byte of t he standard 8052 16-bit data pointer. data pointer low1 (initial=00h) bit: 7 6 5 4 3 2 1 0 dpl1.7 dpl1.6 dpl1.5 dpl1.4 d pl1.3 dpl1.2 dpl1.1 dpl1.0 mnemonic: dpl1 address: 84h
w925e/c625 - 14 - dpl1: this is the low byte of the new addition al 16-bit data pointer. that has been added to the w925e/c625. the user can switch between dpl, dph and dpl1, dph1 simply by setting register dps.0 = 1. the inst ructions that use dptr will now access dpl1 and dph1 in place of dpl and dph. if they are not required , they can be used as conventional register locations by the user. data pointer high1 (initial=00h) bit: 7 6 5 4 3 2 1 0 dph1.7 dph1.6 dph1.5 dph1.4 dph1.3 dph1.2 dph1.1 dph1.0 mnemonic: dph1 address: 85h dph1: this is the high byte of the new additio nal 16-bit data pointer. that has been added to the w925e/c625. the user can switch between dpl, dph and dpl1, dph1 simply by setting register dps = 1. the instructions that use dptr will now access dp l1 and dph1 in place of dpl and dph. if they are not required, they can be used as conventional register locations by the user. data pointer select (initial=00h) bit: 7 6 5 4 3 2 1 0 - - - - - - - dps.0 mnemonic: dps address: 86h dps.0: this bit is used to select either the dpl, dph pair or the dpl1,dph1 pair as the active data pointer. when set to 1, dpl1,dph1 will be se lected, otherwise dpl, dph will be selected. dps.1-7:these bits are reserved, but will read 0. power control (initial=00h) bit: 7 6 5 4 3 2 1 0 - - - idlt gf1 gf0 pd idl mnemonic: pcon address: 87h idlt: this bit controls the idle mode type. in idle mode when idle mode is released by any interrupt, if idlt=1 it will not jump to the corr esponding interrupt; if idlt=0 it will jump to the corresponding interrupt. gf1-0: these two bits are general-purpose user flags. pd: setting this bit causes the w925e/c625 to go into the power down mode. in this mode, all the clocks are stopped and program ex ecution is frozen. power down mode can be released by int0~int3 and ring detection of cid interrupt. idl: setting this bit causes the w925e/c625 to go into the idle mode. the type of idle mode is selected by idlt. in this mode the clocks to the cpu are stopped, so program execution is frozen. however, the clock path to the timers blocks and interrupt blocks is not stopped, and these blocks continue operating.
w925e/c625 publication release date: july 4, 2005 - 15 - revision a10 timer control (initial=00h) bit: 7 6 5 4 3 2 1 0 tf1 tr1 tf0 tr0 ie1 it1 ie0 it0 mnemonic: tcon address: 88h tf1: timer 1 overflows flag. this bit is set when ti mer 1 overflows. it is cleared automatically when the program does a timer 1 interrupt service rout ine. software can also set or clear this bit. tr1: timer 1 runs control. this bit is set or cleared by software to turn timer on or off. tf0: timer 0 overflows flag. this bit is set when ti mer 0 overflows. it is cleared automatically when the program does a timer 0 interrupt service rout ine. software can also set or clear this bit. tr0: timer 0 runs control. this bit is set or cleared by software to turn timer on or off. ie1: interrupt 1 edge detect: set by hardw are when an edge/level is detected on int1 . this bit is cleared by hardware when the se rvice routine is vectored to on ly if the interrupt was edge triggered. otherwise, it follows the pin. it1: interrupt 1 type control: set/cleared by so ftware to specify falling edge/ low level triggered external inputs. ie0: interrupt 0 edge detect: set by hardw are when an edge/level is detected on int0 . this bit is cleared by hardware when the se rvice routine is vectored to on ly if the interrupt was edge triggered. otherwise, it follows the pin. it0: interrupt 0 type control. set/cleared by so ftware to specify falling edge/ low level triggered external inputs. timer mode control (initial=00h) bit: 7 6 5 4 3 2 1 0 gate c/ t m1 m0 gate c/ t m1 m0 mnemonic: tmod address: 89h bit7~4 control timer 1, bit3~0 control timer0 gate: gating control. when this bit is set, timer x is enabled only while intx pin is high and trx control bit is set. when cleared, timer x is enabled whenever trx control bit is set. c/ t : timer or counter select. when cleared, the ti mer is incremented by in ternal clocks. when set, the timer counts high-to-low edges of the tx pin. note: x is either 0 or 1. m1, m0: mode select bits: m1 m0 mode 0 0 mode 0: 13-bits timer 0 1 mode 1: 16-bits timer 1 0 mode 2: 8-bits with auto-reload from thx 1 1 reserved
w925e/c625 - 16 - timer 0 low byte (initial=00h) bit: 7 6 5 4 3 2 1 0 tl0.7 tl0.6 tl0.5 tl0.4 tl0.3 tl0.2 tl0.1 tl0.0 mnemonic: tl0 address: 8ah tl0.7-0: timer 0 low byte register. timer 1 low byte (initial=00h) bit: 7 6 5 4 3 2 1 0 tl1.7 tl1.6 tl1.5 tl1.4 tl1.3 tl1.2 tl1.1 tl1.0 mnemonic: tl1 address: 8bh tl1.7-0: timer 1 low byte register. timer 0 high byte (initial=00h) bit: 7 6 5 4 3 2 1 0 th0.7 th0.6 th0.5 th0.4 th0.3 th0.2 th0.1 th0.0 mnemonic: th0 address: 8ch th0.7-0: timer 0 high byte register. timer 1 high byte (initial=00h) bit: 7 6 5 4 3 2 1 0 th1.7 th1.6 th1.5 th1.4 th1.3 th1.2 th1.1 th1.0 mnemonic: th1 address: 8dh th1.7-0: timer 1 high byte register. clock control1 (initial=00h) bit: 7 6 5 4 3 2 1 0 wd1 wd0 t1s1 t1s0 t0s1 t0s0 divs m /s mnemonic: ckcon1 address: 8eh wd1-0: watchdog timer mode select bits: these bits determine the time-out period for the watchdog timer. in all four time-out options, the reset time-out is 512 clocks more than the interrupt time- out period. wd1 wd0 interrupt time-out reset time-out 0 0 fosc/2 12 fosc/2 12 + 512 0 1 fosc/2 15 fosc/2 15 + 512 1 0 fosc/2 18 fosc/2 18 + 512 1 1 fosc/2 21 fosc/2 21 + 512
w925e/c625 publication release date: july 4, 2005 - 17 - revision a10 t0s0-1&t1s0-1: timer0 & timer1 clock source mo de select bits. these bits determine the timer0 & timer1 clock source. t0s1 (t1s1) t0s0 (t1s0) prescale clock source 0 0 fosc/2 2 0 1 fosc/2 6 1 0 fosc/2 10 1 1 fs divs: divider clock source control bit 1: divs = 0 : fs/2 13 divs= 1 : fs/2 14 m /s: system clock source control bit : m /s = 0 : fosc = xin1 ( f m ) m /s = 1 : fosc = xin2 ( fs) clock control2 (initial=00h) bit: 7 6 5 4 3 2 1 0 enbuz buzsl kt1 kt0 - - - - mnemonic: ckcon2 address: 8fh enbuz: when enbuz=1 the buz pin works as buzzer output, otherwise buz pin is in floating state. buzsl: buzzer output selection. when buzsl=0 buz is the output of octave tone. when buzzl=1, buz is the output of key tone. kt1-0: key tone frequency sources from divider. when divider is enable, kt1 and kt0 determines the key tone frequency. kt1 kt0 key tone frequency 0 0 low 0 1 512hz 1 0 1024hz 1 1 2048hz port 1 (initial=ffh,input mode) bit: 7 6 5 4 3 2 1 0 p1.7 p1.6 p1.5 p1.4 p1.3 p1.2 p1.1 p1.0 mnemonic: p1 address: 90h p1.7-0: p1 can be selected as input or output mode by the p1io register, at initial reset, p1io is set to 1, so p1 is used as input mode . when p1io is set to 0, the p1 is used as cmos output mode. when p1ef are set and p1io are set as input mode, p1 can be used as external interrupt source. the functions are listed below.
w925e/c625 - 18 - p1.0 : int2.0 external interrupt 2 p1.1 : int2.1 external interrupt 2 p1.2 : int2.2 external interrupt 2 p1.3 : int2.3 external interrupt 2 p1.4 : int3.0 external interrupt 3 p1.5 : int3.1 external interrupt 3 p1.6 : int3.2 external interrupt 3 p1.7 : int3.3 external interrupt 3 external interrupt flag (initial=00h) bit: 7 6 5 4 3 2 1 0 - - - compf divf cidf ie3 ie2 mnemonic: exif address: 91h compf: comparator flag. set by hardwar e when resc bit is from low to high. divf: divider overflows flag. cidf: cid interrupts flag. se t by hardware when at least one of cid flags is set. ie3: external interrupt 3 flag. set by har dware when a falling edge is detected on int3. ie2: external interrupt 2 flag. set by har dware when a falling edge is detected on int2. p1 pins status (initial=00h) bit: 7 6 5 4 3 2 1 0 p1.7sr p1.6sr p1.5sr p1.4sr p1.3sr p1.2sr p1.1sr p1.0sr mnemonic: p1sr address: 93h p1sr: set when a falling edge is detected on t he corresponding p1 pin, clear by software. p0 i/o port control (initial=ffh) bit: 7 6 5 4 3 2 1 0 p0.7io p0.6io p0.5io p0.4io p0.3io p0.2io p0.1io p0.0io mnemonic: p0io address: 94h p0io: p0 pins i/o control. 1: input mode 0: output mode p1 i/o port control (initial=ffh) bit: 7 6 5 4 3 2 1 0 p1.7io p1.6io p1.5io p1.4io p1.3io p1.2io p1.1io p1.0io mnemonic: p1io address: 95h
w925e/c625 publication release date: july 4, 2005 - 19 - revision a10 p1io: p1 pins i/o control. 1: input mode 0: output mode p2 i/o port control (initial=ffh) bit: 7 6 5 4 3 2 1 0 p2.7io p2.6io p2.5io p2.4io p2.3io p2.2io p2.1io p2.0io mnemonic: p2io address: 96h p2io: p2 pins i/o control. 1: input mode 0: output mode p3 i/o port control (initial=ffh) bit: 7 6 5 4 3 2 1 0 p3.7io p3.6io p3.5io p3.4io p3.3io p3.2io p3.1io p3.0io mnemonic: p3io address: 97h p3io: p3 pins i/o control. 1: input mode 0: output mode p1 pins interrupt eable (initial=00h) bit: 7 6 5 4 3 2 1 0 p1.7ef p1.6ef p1.5ef p1.4ef p1.3ef p1.2ef p1.1ef p1.0ef mnemonic: p1ef address: 9bh p1ef: p1 pins interrupt function enabled/disabled register 0: disable 1: enable p1 pull-high control (initial=00h) bit: 7 6 5 4 3 2 1 0 p1.7h p1.6h p1.5h p1.4h p1.3h p1.2h p1.1h p1.0h mnemonic: p1h address: 9dh p1h: port1 pins pull-high resistor enable/disable 1: enable 0: disable
w925e/c625 - 20 - p2 pull-high control (initial=00h) bit: 7 6 5 4 3 2 1 0 p2.7h p2.6h p2.5h p2.4h p2.3h p2.2h p2.1h p2.0h mnemonic: p2h address: 9eh p2h: port1 pins pull-high resistor enable/disable 1: enable 0: disable p3 pull-high control (initial=00h) bit: 7 6 5 4 3 2 1 0 p3.7h p3.6h p3.5h p3.4h p3.3h p3.2h p3.1h p3.0h mnemonic: p3h address: 9fh p3h: port1 pins pull-high resistor enable/disable 1: enable 0: disable port 2 (initial=ffh,input mode) bit: 7 6 5 4 3 2 1 0 p2.7 p2.6 p2.5 p2.4 p2.3 p2.2 p2.1 p2.0 mnemonic: p2 address: a0h p2.7-0: port 2 is an i/o port with internal pull-high resistor. p2 can be selected as input or output mode by the p2io register. at initial reset, p2 is used as input mode. when p2io is set to 0, p2 is used as cmos output mode. high byte register (initial=00h) bit: 7 6 5 4 3 2 1 0 hb.7 hb.6 hb.5 hb.4 hb.3 hb.2 hb.1 hb.0 mnemonic: hb address: a1h this register contains the high byte address du ring execution of ? movx @ri, ? instructions. p4 pull-high control (initial=00h) bit: 7 6 5 4 3 2 1 0 p4.7h p4.6h p4.5h p4.4h p4.3h p4.2h p4.1h p4.0h mnemonic: p4h address: a2h p4h: port4 pins pull-high resistor enable/disable 1: enable 0: disable
w925e/c625 publication release date: july 4, 2005 - 21 - revision a10 port 4 (initial=ffh,input mode) bit: 7 6 5 4 3 2 1 0 p4.7 p4.6 p4.5 p4.4 p4.3 p4.2 p4.1 p4.0 mnemonic: p4 address: a6h p4.7-0: port 4 is a i/o port with internal pull-high resistor. p4 can be selected as input or output mode by the p4io register, at initial reset, p4io is set to 0ffh, p4 is used as input mode. when p4io is set to 00h, p4 is used as cmos out put mode. special function of p4 is described below. p4.4 vpos positive input of the comparator p4.2 vneg negative input of the comparator p4.1 sdata serial port data i/o p4.0 sclk serial port clock i/o interrupt enable (initial=00h) bit: 7 6 5 4 3 2 1 0 ea es1 - - et1 ex1 et0 ex0 mnemonic: ie address: a8h ea: global enable. enable/disable all interrupts. es1: enable serial port interrupt et1: enable timer 1 interrupt ex1: enable external interrupt 1 et0: enable timer 0 interrupt ex0: enable external interrupt 0 p4 i/o port control (initial=ffh) bit: 7 6 5 4 3 2 1 0 p4.7io p4.6io p4.5io p4.4io p4.3io p4.2io p4.1io p4.0io mnemonic: p4io address: aeh p4io: p4 pins i/o control. 1: input mode 0: output mode port 3 (initial=ffh,input mode) bit: 7 6 5 4 3 2 1 0 p3.7 p3.6 p3.5 p3.4 p3.3 p3.2 p3.1 p3.0 mnemonic: p3 address: b0h
w925e/c625 - 22 - p3.7-0: p3 can be selected as input or output mode by the p3io register, at initial reset, p3io is set to 0ffh, p3 is used as input mode. when p3io is set to 00h, the p3 is used as cmos output mode. special function of p3 is described below. p3.5 t1 timer/counter 1 external count input p3.4 t0 timer/counter 0 external count input p3.3 int1 external interrupt 1 p3.2 int0 external interrupt 0 cid register (initial=00h, read only ) bit: 7 6 5 4 3 2 1 0 - fclk fdata fcd dtmfd fdr algo rng mnemonic: cidr address: b1h this sfr indicates the cid signal immediately. r egister data is set or cleared by hardware only. fclk: fsk serial clock with the baud rate of 1200hz. fdata: fsk serial bit data. fcd: set when fsk carrier is detected. cleared when fsk carrier is disappeared. dtmfd: set when dtmf decoded data is ready. cleared when dtmf signal ends. fdr: set when fsk 8 bits data is ready. cleared before next fsk start bit comes algo: dual tone alert signal guard time detect signal. set when a guard time qualified dual tone alert signal has been detected. cleared when the guard time qualified dual tone alert signal is absent. rng: ring detection bit. high to indicate the detection of line reversal and/or ringing. cid flag generator (initial=00h) bit: 7 6 5 4 3 2 1 0 - - - fsf dtmfdf fdrf algof rngf mnemonic: cidfg address: b2h fsf: set when fsk latch clock low to high. cleared by software dtmfdf: set when dtmfd low to high. cleared by software fdrf: set when fdr low to high. cleared by software. algof: set when algo low to high. cleared by software. rngf: set when rng low to high. cleared by software. cid power control register (initial=00h) bit: 7 6 5 4 3 2 1 0 - - - cide - fske case dtmfe mnemonic: cidpcr address: b3h
w925e/c625 publication release date: july 4, 2005 - 23 - revision a10 cide: global enable cid function. low to disable all functions of cid parts. fske: enable fsk demodulation circuit. case: enable dual tone alert signal detection circuit. dtmfe: enable dtmf demodulation circuit. fsk data register (initial=xxh) bit: 7 6 5 4 3 2 1 0 fd7 fd6 fd5 fd4 fd3 fd2 fd1 fd0 mnemonic: fskdr address: b4h fd7-0: 8 bits fsk demodulated data. dtmf data register (initial=xxh) bit: 7 6 5 4 3 2 1 0 cash casl dtmfh dtmfl dd3 dd2 dd1 dd0 mnemonic: dtmfdr address: b5h cash: set when dual tone alert signal high tone is detected. casl: set when dual tone alert signal low tone is detected. dtmfh: set when dtmf high tone is detected. dtmfl: set when dtmf low tone is detected. dd3-0: 4 bits dtmf demodulated data. dtmf present time register (initial=19h) bit: 7 6 5 4 3 2 1 0 dpt7 dpt6 dpt5 dpt4 dpt3 dpt2 dpt1 dpt0 mnemonic: dtmfpt address: b6h the clock period of guard-time timer is 0.8582ms. the default dtmf present time is 21.45ms. dpt7-0: the pre-set data register for counting dtmf present time. when dtmf is detected(est low to high), the guard timer starts to up-count from 00h. as the guard timer is equal to the value of dtmfpt, the exist of the dtmf is accept ed. est changes to low state to stop and reset the counter. dtmf absent time register (initial=19h) bit: 7 6 5 4 3 2 1 0 dat7 dat6 dat5 dat4 dat3 dat2 dat1 dat0 mnemonic: dtmfat address: b7h the clock period of guard-time timer is 0.8582ms. the default dtmf absent time is 21.45ms.
w925e/c625 - 24 - dat7-0:the pre-set data register for counting dtmf absent time. when dtmf is absent(est high to low), the guard timer starts to up-count from 00h. as the guard timer is equal to the value of dtmfat, the finish of dtmf is recognized. est changes to low state to stop and reset the counter. interrupt priority (initial=00h) bit: 7 6 5 4 3 2 1 0 - ps1 - - pt1 px1 pt0 px0 mnemonic: ip address: b8h ip.7: this bit is un-implemented and will read high. ps1: this bit defines the serial port interrupt pr iority. ps1 = 1 sets it to higher priority level pt1: this bit defines the timer 1 interrupt priori ty. pt1 = 1 sets it to higher priority level. px1: this bit defines the external interrupt 1 prio rity. px1 = 1 sets it to higher priority level. pt0: this bit defines the timer 0 interrupt priori ty. pt0 = 1 sets it to higher priority level. px0: this bit defines the external interrupt 0 prio rity. px0 = 1 sets it to higher priority level. dtmf generator register (initial=00h) bit: 7 6 5 4 3 2 1 0 - dtge he le l1 l0 h1 h0 mnemonic: dtmfg address: bah l1 l0 h1 h0 selected tone x x 0 0 1209hz x x 0 1 1336hz x x 1 0 1477hz x x 1 1 1633hz 0 0 x x 697hz 0 1 x x 770hz 1 0 x x 852hz 1 1 x x 941hz le: enable low group frequency output. he: enable high group frequency output. dtge: enable dual tone output to dtmf pin. comparator register (initial=00h) bit: 7 6 5 4 3 2 1 0 - - - - resc ref - compen mnemonic: compr address: bbh
w925e/c625 publication release date: july 4, 2005 - 25 - revision a10 resc: result of the comparator. set when positive analog input voltage is(vpos or 1.0v internal regular output) higher than negative analog input voltage(vneg) resc is a read only bit. ref: ref=0 reference input from analog input voltage(vpos/p4.4) pin. ref=1 reference input from the internal regulator output. compen: compen=0 disable comparator compen=1 enable comparator idle released condition register 1 (initial=00h) bit: 7 6 5 4 3 2 1 0 - ircs1 - - irct 1 ircx1 irct0 ircx0 mnemonic: irc1 address: bch one of the bits of irc1 and irc2 will be set by ha rdware to record the idle released condition when the idle mode is released. irc1 and irc2 can be set by hardware and can be r/w by software. ircs1: idle mode released by serial port interrupt flag. irct1: idle mode released by timer 1 interrupt flag. ircx1: idle mode released by external interrupt 1 flag. irct0: idle mode released by timer 0 interrupt flag. ircx0: idle mode released by external interrupt 0 flag. idle released condition register 2 (initial=00h) bit: 7 6 5 4 3 2 1 0 - - ircwdi irccomp irc div irccid ircx3 ircx2 mnemonic: irc2 address: bdh one of the bits of irc1 and irc2 will be set by ha rdware to record the idle released condition when the idle mode is released. irc1 and irc2 can be set by hardware and can be r/w by software. ircwdi: idle mode released by watchdog timer interrupt flag. irccomp: idle mode released by comparator interrupt flag. ircdiv: idle mode released by divider interrupt flag. irccid: idle mode released by cid interrupt flag. ircx3: idle mode released by external interrupt 3 flag. ircx2: idle mode released by external interrupt 2 flag.
w925e/c625 - 26 - cas tone present time register (initial=0fh) bit: 7 6 5 4 3 2 1 0 caspt7 caspt6 caspt5 caspt4 c aspt3 caspt2 caspt1 caspt0 mnemonic: caspt address: beh the clock period of guard-time timer is 0.8582ms. the default alert tone present time is 12.87ms. caspt7-0: the pre-set data register for counting cas tone present time. wh en cas tone is detected (algr low to high), the guard timer starts to up-count from 00h. as the guard timer is equal to the value of caspt, the exist of the cas tone is accepted. algr changes to low state to stop and reset the counter. cas tone absent time register (initial=0fh) bit: 7 6 5 4 3 2 1 0 casat7 casat6 casat5 casat4 c asat3 casat2 casat1 casat0 mnemonic: casat address: bfh the clock period of guard-time timer is 0.8582ms. the default alert tone absent time is 12.87ms. casat7-0: the pre-set data register for counti ng cas tone absent time. when cas tone is absent (algr high to low), the guard timer starts to up-count from 00h. as the guard timer is equal to the value of casat, the finish of c as tone is recognized. al gr changes to high state to stop and reset the counter. serial port control (initial=00h) bit: 7 6 5 4 3 2 1 0 sf1 lcdon regon ren 1 sfq sedg clkio sio mnemonic: scon1 address: c0h sf1: serial port interrupt flag. when 8-bits data transited completely, sf1 is set by hardware. sf1 is cleared when serial interrupt routine is executed or cleared by software. lcdon: lcd waveform enable control. 0 to di sable lcd display, 1 to enable lcd display. regon: regulator on/off control. 0 to disable regulator, 1 to regulator. ren1: set ren1 from 0 to 1 to start the serial port1 to receive 8-bit serial data. sfq: sfq=0 serial clock output frequency is equal to f osc /2 sfq=1 serial clock output frequency is equal to f osc /256 sedg: sedg=0 serial data latched at falling edge of clock, sclk=low initially. sedg=1 serial data latched at rising edge of clock, sclk=high initially. clkio: clkio=0 p4.0(sclk) work as output mode clkio=1 p4.0(sclk) work as input mode sio: sio=0 p4.0 & p4.1 work as normal i/o pin sio=1 p4.0 & p4.1 work as serial port1 function
w925e/c625 publication release date: july 4, 2005 - 27 - revision a10 serial data buffer 1 (initial=00h) read only bit: 7 6 5 4 3 2 1 0 sbuf1.7 sbuf1.6 sbuf1.5 sbuf1 .4 sbuf1.3 sbuf1.2 sbuf1.1 sbuf1.0 mnemonic: sbuf1 address: c1h sbuf1.7-0: serial data on the serial port 1 is read from or written to this location. it actually consists of two separate internal 8-bit registers. one is the receive register, and the other is the transmit buffer. any read access gets data from the receive data buffer, while write access is to the transmit data buffer. regulator voltage control register (initial=00h) bit: 7 6 5 4 3 2 1 0 - - - - regvc.3 regvc .2 regvc.1 regvc.0 mnemonic: regvc address: c2h regvc.3-0: 4 bits to tune t he regulator output voltage. power management register (initial=81h) bit: 7 6 5 4 3 2 1 0 xt/ rg rgmd rgsl x2off x1off - - - mnemonic: pmr address: c4h xt/ rg :crystal/rc oscillator select. setting this bit sele cts crystal or external clock as system clock source. clearing this bit selects the on-chip rc oscillator as clock source. x1up (status.4) must be set to 1 and x1off (pmr.3) must be cleared before this bit can be set. attempts to set this bit without obeying these conditions will be ignored. rgmd: rc mode status. this bit indicates the current clock source of micro-controller. when cleared, cpu is operating from the external crystal or oscillator. when set, cpu is operating from the on-chip rc oscillator. rgsl: rc oscillator select. this bit selects the cl ock source following a re sume from power down mode. setting this bit allows device operating from rc oscillator when a resume from power down mode. when this bit is cleared, the dev ice will hold operation until the crystal oscillator has warmed-up following a resume from power down mode. x2off: set to disable sub-oscillator (32khz oscillator) x1off: crystal oscillator disable. setting this bit di sables the external crysta l oscillator. this bit can only be set to 1 while the micro-controller is opera ting from the rc oscillator. clearing this bit restarts the crystal o scillator, the x1up (status.4) bit will be set after crystal oscillator warmed-up has completed. note: the bit0 of this sfr must be set to 1.
w925e/c625 - 28 - status register (initial=00h) bit: 7 6 5 4 3 2 1 0 x2up hip lip x1up - - - - mnemonic: status address: c5h x2up:sub-crystal oscillator warm-u p status. when set, this bit indi cates the crystal oscillator has completed the warm-up delay. when x2off bit is set, hardware will clear this bit. there are two options which are selected by option code for warm-up delay, one is 1024 clocks warm-up delay, other is 65536 clocks warm-up delay. hip: high priority interrupt status. when set, it i ndicates that software is servicing a high priority interrupt. this bit will be cleared when the progra m executes the corresponding reti instruction. lip: low priority interrupt status. when set, it i ndicates that software is servicing a low priority interrupt. this bit will be cleared when the progra m executes the corresponding reti instruction. x1up:crystal oscillator wa rm-up status. when set, this bit i ndicates the crystal oscillator has completed the 65536 clocks wa rm-up delay. each time the crysta l oscillator is re started by exit from power down mode or the x1off bit is set, har dware will clear this bit. this bit is set to 1 after a power-on reset. when this bit is cleared, it prevents software from setting the xt/ rg bit to enable cpu operation from crystal oscillator. there are two options which is selected by option code for warm-up delay, one is 4096 clocks warm-up delay, other is 65536 clocks warm- up delay. please insert at least 10 instructions nop after x2up = ?1?, then switch fsys = fs (ckcon1.0 = ?1?, m/s) & disable x1 osc (pmr.3 = ?1?, x1off). fsk transimt control register (initial=00h) bit: 7 6 5 4 3 2 1 0 fte ftm fds - - - lo1 lo0 mnemonic: fsktc address: c6h fte: fsk transmit enable; enable:1, disable=0 ftm: fsk signal standard; bellcore:1, v.23=0 fds: fsk data sending status lo0, lo1: fsk transmit level option fsk output level lo1 lo0 150mv 0 0 120mv 0 1 95mv 1 0 75mv 1 1
w925e/c625 publication release date: july 4, 2005 - 29 - revision a10 fsk transmit data buffer (initial=00h) bit: 7 6 5 4 3 2 1 0 fsktb.7 fsktb.6 fsktb.5 fsktb.4 fsktb.3 fsktb.2 fsktb.1 fsktb.0 mnemonic: fsktb address: c7h fsktb.0: only this bit will be latched and send out as fsk signal divider control (initial=01h) bit: 7 6 5 4 3 2 1 0 - - - - - - - diva mnemonic: divc address: c8h diva: divider available control bit. this bit is se t or cleared by software to enable/disable divider. diva=1 to enable the divider. diva=0 to dis able the divider. diva is reset after reset. program status word (initial=00h) bit: 7 6 5 4 3 2 1 0 cy ac f0 rs1 rs0 ov f1 p mnemonic: psw address: d0h cy: carry flag. set for an arithmetic operation, which results in a carry being generated from the alu. it is also used as the accumulator for the bit operations. ac: auxiliary carry. set when the previous operation resulted in a carry from the high order nibble. f0: user flag 0. general purpose flag that can be set or cleared by the user. rs.1-0: register bank select bits: rs1 rs0 register bank address 0 0 0 00-07h 0 1 1 08-0fh 1 0 2 10-17h 1 1 3 18-1fh ov: overflow flag. set when a carry was generat ed from the seventh bit but not from the 8 th bit as a result of the previous operation, or vice-versa. f1: user flag 1. general purpose flag that can be set or cleared by the user by software. p: parity flag. set/cleared by hardware to indi cate odd/even number of 1?s in the accumulator.
w925e/c625 - 30 - watchdog control (initial: note) bit: 7 6 5 4 3 2 1 0 - por - wfs wdif wtrf ewt rwt mnemonic: wdcon address: d8h por: power-on reset flag. hardware will set this flag when system is powered on and this flag is cleared only by software. wfs: watchdog timer frequency select. set to select f s as wdt clock input. clear to select f osc as wdt clock input. wdif: watchdog timer interrupt flag. this bit is se t whenever the time-out occurs in the watchdog timer. if the watchdog interrupt is enabled (eie .5), then an interrupt will occur (if the global interrupt enable is set and other interrupt re quirements are met). software or any reset can clear this bit. wtrf: watchdog timer reset flag. hardware will set this bit when the watchdog timer causes a reset. software can read it but must clear it manually. a power-fail reset will also clear the bit. this bit helps software in determining the cause of a reset. if ewt = 0, the watchdog timer will have no effect on this bit. ewt: enable watchdog timer reset. setting this bit will enable the watchdog timer reset function. rwt: reset watchdog timer. this bit helps in putti ng the watchdog timer into a known state. it also helps in resetting the watchdog timer before a ti me-out occurs. failing to set the ewt before time-out will cause an interrupt, if ewdi (eie .5) is set, and 512 clocks after that a watchdog timer reset will be generated if ewt is set. this bit is self-clearing by hardware. note: the wdcon sfr is set to a 0x000xx0b on an external reset. wtrf is set to a 1 on a watchdog timer reset, but to a 0 on power on/down resets. wtrf is not altered by an external re set. por is set to 1 by a power-on reset. ewt is set to 0 on a power-on reset and unaffected by other resets. accumulator (initial=00h) bit: 7 6 5 4 3 2 1 0 acc.7 acc.6 acc.5 acc.4 a cc.3 acc.2 acc.1 acc.0 mnemonic: acc address: e0h acc.7-0: the acc register. extended interrupt enable (initial=00h) bit: 7 6 5 4 3 2 1 0 - - ewdi ecomp ediv ecid ex3 ex2 mnemonic: eie address: e8h eie.7-6:reserved bits. ewdi: enable watchdog timer interrupt. ecomp: enable comp arator interrupt. ediv: enable divider interrupt. ecid: enable cid interrupt.
w925e/c625 publication release date: july 4, 2005 - 31 - revision a10 ex3: enable external interrupt 3. ex2: enable external interrupt 2. b register (initial=00h) bit: 7 6 5 4 3 2 1 0 b.7 b.6 b.5 b.4 b.3 b.2 b.1 b.0 mnemonic: b address: f0h b.7-0:the b register serves as a second accumulator. extended interrupt priority (initial=00h) bit: 7 6 5 4 3 2 1 0 - - pwdi pcomp pdiv pcid px3 px2 mnemonic: eip address: f8h pwdi: watchdog timer interrupt priority . 0 = low priority, 1 = high priority. pcomp: comparator interrupt priority . 0 = low priority, 1 = high priority. pdiv: divider interrupt priority. 0 = low priority, 1 = high priority. pcid: cid interrupt priority. 0 = low priority, 1 = high priority. px3: external interrupt 3 priority. 0 = low priority, 1 = high priority. px2: external interrupt 2 priority. 0 = low priority, 1 = high priority. cid gain control data (initial=00h) bit: 7 6 5 4 3 2 1 0 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 mnemonic: cidgd address: f9h cidgd.7-0: the data value of programmabl e cid input filter gain and hysteresis. cid gain control address (initial=00h) bit: 7 6 5 4 3 2 1 0 - - - - bit3 bit2 bit1 bit0 mnemonic: cidga address: fah cidga.3: the cidgd latch control signal. rising high pulse to latch cidgd into cid gain control register. cidga.2-0: the address to indicate cid input gain control registers.
w925e/c625 - 32 - 6.3 initial state of registers the following table lists the initial state of registers after different reset functions. sfr item reset initial value por wdt reset acc, b, status, psw, 00h 00h 00h sp, 07h 07h 07h p0, p1, p2, p3, p4, p0io, p1io , p2io, p3io, p4io ffh ffh ffh dpl, dph, dpl1, dph1, dps 00h 00h 00h pcon, tcon, tmod, 00h 00h 00h tl0, tl1, th0, th1, 00h 00h 00h ckcon1, ckcon2, scon1, sbuf1, regvc, 00h 00h 00h exif, ie, hb, ip, eie, eip 00h 00h 00h p1sr, p1ef, p1h, p2h, p3h, p4h, 00h 00h 00h cidr, cidfg, cidpcr, cidgd, cidga, 00h 00h 00h fskdr, dtmfdr, ******** b ******** b ******** b dtmfpt, dtmfat, 19h 19h 19h dtmfg, compr, irc1, irc2, fsktc, fsktb, 00h 00h 00h caspt, casat, 0fh 0fh 0fh pmr 10000xx1b 10000xx1b uuu00xx1b divc, 01h 01h 01h wdcon 0u000uu0b 01000000b 0u0001u0b x: un-used u: unchanged *: depend on circuit detection
w925e/c625 publication release date: july 4, 2005 - 33 - revision a10 6.4 instruction the w925e/c625 executes all the in structions of the standard 8032 fa mily. however, timing of these instructions is different. in the w925e/c625, each ma chine cycle consists of 4 clock periods, while in the standard 8032 it consists of 12 clock periods. al so, in the w925e/c625 there is only one fetch per machine cycle i.e. 4 clocks per fetch, while in the standard 8032 there can be two fetches per machine cycle, which works out to 6 clocks per fetch. table 2 instructions that affect flag settings instruction carry overflow auxiliary carry instruction carry overflow auxiliary carry inc,dec - - - setb c 1 add x x x clr c 0 addc x x x cpl c x subb x x x anl c, bit x mul 0 x anl c, bit x div 0 x orl c, bit x da a x orl c, bit x rrc a x mov c, bit x rlc a x cjne x a ?x? indicates that the modification is as per the result of instruction. a ?-? indicates that the flag is not effected by the instruction. table 3 instruction timing for w925e/c625 instruction hex op-code bytes machine cycles instruction hex op-code bytes machine cycles nop 00 1 1 anl a, r0 58 1 1 add a, r0 28 1 1 anl a, r1 59 1 1 add a, r1 29 1 1 anl a, r2 5a 1 1 add a, r2 2a 1 1 anl a, r3 5b 1 1 add a, r3 2b 1 1 anl a, r4 5c 1 1 add a, r4 2c 1 1 anl a, r5 5d 1 1 add a, r5 2d 1 1 anl a, r6 5e 1 1 add a, r6 2e 1 1 anl a, r7 5f 1 1 add a, r7 2f 1 1 anl a, @r0 56 1 1 add a, @r0 26 1 1 anl a, @r1 57 1 1 add a, @r1 27 1 1 anl a, direct 55 2 2 add a, direct 25 2 2 anl a, #data 54 2 2 add a, #data 24 2 2 anl direct, a 52 2 2 addc a, r0 38 1 1 anl direct, #data 53 3 3 addc a, r1 39 1 1 anl c, bit 82 2 2 addc a, r2 3a 1 1 anl c, /bit b0 2 2 addc a, r3 3b 1 1 cjne a, direct, rel b5 3 4
w925e/c625 - 34 - table 3. instruction timing for w925e/c625, continued instruction hex op-code bytes machine cycles instruction hex op-code bytes machine cycles addc a, r4 3c 1 1 cjne a, #data, rel b4 3 4 addc a, r5 3d 1 1 cjne @r0, #data, rel b6 3 4 addc a, r6 3e 1 1 cjne @r1, #data, rel b7 3 4 addc a, r7 3f 1 1 cjne r0, #data, rel b8 3 4 addc a, @r0 36 1 1 cjne r1, #data, rel b9 3 4 addc a, @r1 37 1 1 cjne r2, #data, rel ba 3 4 addc a, direct 35 2 2 cjne r3, #data, rel bb 3 4 addc a, #data 34 2 2 cjne r4, #data, rel bc 3 4 acall addr11 71,91,b1, 11,31,51, d1,f1 2 3 cjne r5, #data, rel bd 3 4 ajmp addr11 01,21,41, 61,81,a1, c1,e1 2 3 cjne r6, #data, rel be 3 4 cjne r7, #data, rel bf 3 4 jc rel 40 2 3 clr a e4 1 1 jnc rel 50 2 3 cpl a f4 1 1 jb bit, rel 20 3 4 clr c c3 1 1 jnb bit, rel 30 3 4 clr bit c2 2 2 jbc bit, rel 10 3 4 cpl c b3 1 1 lcall addr16 12 3 4 cpl bit b2 2 2 ljmp addr16 02 3 4 dec a 14 1 1 mul ab a4 1 5 dec r0 18 1 1 mov a, r0 e8 1 1 dec r1 19 1 1 mov a, r1 e9 1 1 dec r2 1a 1 1 mov a, r2 ea 1 1 dec r3 1b 1 1 mov a, r3 eb 1 1 dec r4 1c 1 1 mov a, r4 ec 1 1 dec r5 1d 1 1 mov a, r5 ed 1 1 dec r6 1e 1 1 mov a, r6 ee 1 1 dec r7 1f 1 1 mov a, r7 ef 1 1 dec @r0 16 1 1 mov a, @r0 e6 1 1 dec @r1 17 1 1 mov a, @r1 e7 1 1 dec direct 15 2 2 mov a, direct e5 2 2 dec dptr a5 1 2 mov a, #data 74 2 2 div ab 84 1 5 mov r0, a f8 1 1 da a d4 1 1 mov r1, a f9 1 1 djnz r0, rel d8 2 3 mov r2, a fa 1 1 djnz r1, rel d9 2 3 mov r3, a fb 1 1 djnz r2, rel da 2 3 mov r4, a fc 1 1 djnz r3, rel db 2 3 mov r5, a fd 1 1 djnz r4, rel dc 2 3 mov r6, a fe 1 1
w925e/c625 publication release date: july 4, 2005 - 35 - revision a10 table 3. instruction timing for w925e/c625, continued instruction hex op-code bytes machine cycles instruction hex op-code bytes machine cycles djnz r5, rel dd 2 3 mov r7, a ff 1 1 djnz r6, rel de 2 3 mov r0, direct a8 2 2 djnz r7, rel df 2 3 mov r1, direct a9 2 2 djnz direct, rel d5 3 4 mov r2, direct aa 2 2 inc a 04 1 1 mov r3, direct ab 2 2 inc r0 08 1 1 mov r4, direct ac 2 2 inc r1 09 1 1 mov r5, direct ad 2 2 inc r2 0a 1 1 mov r6, direct ae 2 2 inc r3 0b 1 1 mov r7, direct af 2 2 inc r4 0c 1 1 mov r0, #data 78 2 2 inc r5 0d 1 1 mov r1, #data 79 2 2 inc r6 0e 1 1 mov r2, #data 7a 2 2 inc r7 0f 1 1 mov r3, #data 7b 2 2 inc @r0 06 1 1 mov r4, #data 7c 2 2 inc @r1 07 1 1 mov r5, #data 7d 2 2 inc direct 05 2 2 mov r6, #data 7e 2 2 inc dptr a3 1 2 mov r7, #data 7f 2 2 jmp @a+dptr 73 1 2 mov @r0, a f6 1 1 jz rel 60 2 3 mov @r1, a f7 1 1 jnz rel 70 2 3 mov @r0, direct a6 2 2 mov @r1, direct a7 2 2 rl a 23 1 1 mov @r0, #data 76 2 2 rlc a 33 1 1 mov @r1, #data 77 2 2 rr a 03 1 1 mov direct, a f5 2 2 rrc a 13 1 1 mov direct, r0 88 2 2 setb c d3 1 1 mov direct, r1 89 2 2 setb bit d2 2 2 mov direct, r2 8a 2 2 swap a c4 1 1 mov direct, r3 8b 2 2 sjmp rel 80 2 3 mov direct, r4 8c 2 2 subb a, r0 98 1 1 mov direct, r5 8d 2 2 subb a, r1 99 1 1 mov direct, r6 8e 2 2 subb a, r2 9a 1 1 mov direct, r7 8f 2 2 subb a, r3 9b 1 1 mov direct, @r0 86 2 2 subb a, r4 9c 1 1 mov direct, @r1 87 2 2 subb a, r5 9d 1 1 mov direct, direct 85 3 3 subb a, r6 9e 1 1 mov direct, #data 75 3 3 subb a, r7 9f 1 1 mov dptr, #data 16 90 3 3 subb a, @r0 96 1 1 the cpe designer may choose to set 93 1 2 subb a, @r1 97 1 1 the cpe designer may choose to set 83 1 2 subb a, direct 95 2 2
w925e/c625 - 36 - table 3. instruction timing for w925e/c625, continued instruction hex op-code bytes machine cycles instruction hex op-code bytes machine cycles movx a, @r0 e2 1 2 subb a, #data 94 2 2 movx a, @r1 e3 1 2 xch a, r0 c8 1 1 movx a, @dptr e0 1 2 xch a, r1 c9 1 1 movx @r0, a f2 1 2 xch a, r2 ca 1 1 movx @r1, a f3 1 2 xch a, r3 cb 1 1 movx @dptr, a f0 1 2 xch a, r4 cc 1 1 mov c, bit a2 2 2 xch a, r5 cd 1 1 mov bit, c 92 2 2 xch a, r6 ce 1 1 orl a, r0 48 1 1 xch a, r7 cf 1 1 orl a, r1 49 1 1 xch a, @r0 c6 1 1 orl a, r2 4a 1 1 xch a, @r1 c7 1 1 orl a, r3 4b 1 1 xchd a, @r0 d6 1 1 orl a, r4 4c 1 1 xchd a, @r1 d7 1 1 orl a, r5 4d 1 1 xch a, direct c5 2 2 orl a, r6 4e 1 1 xrl a, r0 68 1 1 orl a, r7 4f 1 1 xrl a, r1 69 1 1 orl a, @r0 46 1 1 xrl a, r2 6a 1 1 orl a, @r1 47 1 1 xrl a, r3 6b 1 1 orl a, direct 45 2 2 xrl a, r4 6c 1 1 orl a, #data 44 2 2 xrl a, r5 6d 1 1 orl direct, a 42 2 2 xrl a, r6 6e 1 1 orl direct, #data 43 3 3 xrl a, r7 6f 1 1 orl c, bit 72 2 2 xrl a, @r0 66 1 1 orl c, /bit a0 2 2 xrl a, @r1 67 1 1 push direct c0 2 2 xrl a, direct 65 2 2 pop direct d0 2 2 xrl a, #data 64 2 2 ret 22 1 2 xrl direct, a 62 2 2 reti 32 1 2 xrl direct, #data 63 3 3
w925e/c625 publication release date: july 4, 2005 - 37 - revision a10 6.5 power management the w925e/c625 has 3 operation mode, normal mode, idle mode and power down mode to manage the power consumption. normal mode normal mode is used in the normal operation status . all functions can be worked in the normal mode. idle mode the user can put the device into idle mode by writing 1 to the bit pcon.0. the instruction that sets the idle bit is the last instruction that will be execut ed before the device goes into idle mode. in the idle mode, the clock to the cpu is halted, but not to the interrupt, timer, watchdog timer, divider, comparator and cid blocks. this fo rces the cpu state to be frozen; the program counter, the stack pointer, the program status word, the accumulato r and the other registers hold their contents. the port pins hold the logical states they had at the time idle was activated. the idle mode can be terminated in two ways. since the interrupt cont roller is still active, the activation of any enabled interrupt can wake up the processor. this will automa tically terminate the idle mode and clear the idle bit. and if bit idlt(pcon.4) is cl eared the interrupt serv ice routine(isr) will be executed, else the idle mode is released directly without any execution of isr. after the isr, execution of the program will continue from the instruction, which put the device into idle mode. the idle mode can also be exited by activating t he reset. the device can be put into reset either by applying a low on the external reset pin or a power on/fail reset c ondition or a watchdog timer reset. the external reset pin has to be held low for at le ast two machine cycles i.e. 8 clock periods to be recognized as a valid reset. in the reset condition the program counter is reset to 0000h and all the sfrs are set to the reset conditi on. since the clock is still running in the peri od of external reset therefore the instruction is execut ed immediately. in the idle mode, the watchdog timer continues to run, and if enabled, a time-out will cause a watchd og timer interrupt which will wake up the device. the software must reset the watchdog timer in order to preempt the reset wh ich will occur after 512 clock periods of the time-out. power down mode the device can be put into power down mode by writing 1 to bit pcon.1. the instruction that does this will be the last inst ruction to be executed befor e the device goes into po wer down mode. in the power down mode, all the clocks are stopped and the dev ice comes to a halt. all activity is completely stopped and the power consumption is reduced to the lowest possible value. the port pins output the values held by their respective sfrs. the w925e/c625 will exit the power down mode by re set or external interrupts or ring detected. an external reset can be used to exit the power down state. the low on reset pin terminates the power down mode, and restarts the clock. the on-chip hardware will now provide a delay of 65536 clock, which is used to provide time for the oscillator to restart and stabilize. once this delay is complete, an internal reset is activated and the program executio n will restart from 0000h. in the power down mode, the clock is stopped, so the watchdog timer cannot be used to provide the reset to exit power down mode. the w925e/c625 can be woken from the power down mode by forcing an external interrupt pin activated and ring detected, provided the corresponding interrupt is enabled , while the global enable(ea) bit is set. while the power down is released, the device will experience a warm-up delay of 65536 clock cycles to ensure the stabilization of osci llation. then device executes the interrupt service routine for the corresponding external interrupt or cid interrupt. after the interrupt service routine is completed, the program returns to the instruction after the one, which put the device into power down
w925e/c625 - 38 - mode and continues from there. when rgsl(pmr.5) bi t is set to 1, the cpu will use the internal rc oscillator instead of crystal to exit power down mo de. the micro-controller w ill automatically switch from rc oscillator to crystal after a warm-up dela y of 65536 crystal clocks. the rc oscillator runs at approximately 2 ? 4 mhz. using rc oscillator to exit from power down mode saves the time for waiting crystal start-up. it is useful in the low power syst em which usually be awakened from a short operation then returns to power down mode. 6.6 reset the user has several hardware related options for placing the w925e/c625 into reset condition. in general, most register bits go to their reset value ir respective of the reset condition, but there are few flags that initial states are dependant on the source of reset. user can recognize the cause of reset by reading the flags. there are three ways of putting the device into reset state. they are external reset, power on reset and watchdog reset. external reset the device continuously samples t he reset pin at state c4 of ever y machine cycle. therefore, the reset pin must be held for at least 2 machine cycles to ensure detection of a valid reset low. the reset circuitry then synchronously applies the internal reset signal. thus, the reset is a synchronous operation and requires the clock to be running to cause an external reset. once the device is in reset condition, it will rema in so as long as reset is 0. even after reset is deactivated, the device will continue to be in reset state for up to two machine cycles, and then begin program execution from 0000h. there is no flag associ ated with the external reset condition. however, since some flags indicate the cause of other two reset, the external reset can be considered as the default reset if those two flags are cleared. watchdog timer reset the watchdog timer is a free running timer with programmable time-out intervals. the user can reset the watchdog timer at any time to avoid producing the flag wdif. if the watchdog reset is enabled and the flag wdif is set high, the watchdog timer rese t is performed after the additional 512 clocks come. this places the device into the reset condition. th e reset condition is maintained by hardware for two machine cycles. once the reset is remov ed the device will begin execution from 0000h. 6.7 interrupt the w925e/c625 has a two priority levels interrupt structure with 11 interrupt sources. each of the interrupt sources has an individual priority bit, fl ag, interrupt vector and enable bit. in addition, the interrupts can be globally enabled or disabled. interrupt sources the external interrupts int0 and int1 can be either edge triggered or level triggered, depending on bits it0 and it1. the bits ie0 and ie1 in the tc on register are the flags which are checked to generate the interrupt. in the edge triggered mode of the int0 and the int1 inputs are sampled in every machine cycle. if the sample is high in one cycle and low in the next, then a high to low transition is detected and the interrupts request fl ag iex in tcon is set. the flag bit requests the interrupt. since the external interrupts are sampled every machine cycle, they have to be held high or low for at least one complete machine cycle. the iex flag is automatically cleared when the service routine is called. if the level triggered mode is select ed, then the requesting sour ce has to hold the pin low until the interrupt is serviced. the iex flag w ill not be cleared by the hardware on entering the
w925e/c625 publication release date: july 4, 2005 - 39 - revision a10 service routine. if the interrupt continues to be hel d low even after the servic e routine is completed, then the processor may acknowledge another interrupt request from the same source. note that the external interrupts int2 to int3 are edge triggered only. the tf0, tf1 flags generate the timer 0, 1 interrupts. these flags are set by the overflow in the timer 0, timer 1. the tf0 and tf1 flags are automatically cleared by the hardware when the timer interrupt is serviced. the watchdog timer can be used as a system monitor or a simple timer. in either case, when the time- out count is reached, the watchdog timer interrupt flag wdif (wdcon .3) is set. if the enable bit eie.5 enables the interrupt, then an interrupt will occur. the serial block can generate interrupts on receptio n or transmission. there are one interrupt sources from the serial block, which are obtained by sf1 in the scon1. sf1 is cleared automatically when the serial port interrupt is serviced. the divider interrupt is generated by divf that is set when divider overflows. divf is set by hardware and cleared when divider interrupt is serviced. the di vider interrupt is enable/disable if the bit ediv is high/low. the comparator interrupt is produced by compf, wh ich is set when the resc bit is changed from low to high. resc, which is the real-time result of co mparator, set when the voltage of reference input is higher than the voltage of analog input. the cid interrupt is generated by ci df. the cidf is a logic or output of all cid flags which are set by hardware and cleared by software. the structur e of the cid flags is shown in figure 6-4. each of the individual interrupts can be enabled or disabled by setting or clearing the corresponding bits in the ie and eie sfr. a bit ea, which is loca ted in ie.7, is a global control bit to enable/disable the all interrupt. when bit ea is zero all interrupts ar e disable and when bit ea is high each interrupt is enable individually by the corresponding bit. rngf fdrf algof dtmfdf cidf r system clock clear by software d fsf figure 6-4 the structure of cid flags priority level structure there are two priority levels for the interrupts, hi gh and low. the interrupt sources can be individually set to either high or low levels. naturally, a higher priority interrupt cannot be interrupted by a lower priority interrupt. however there exists a pre-def ined hierarchy amongst the interrupts themselves. this hierarchy comes into play when the interrupt controller has to resolve simultaneous requests having the same priority level. this hierarchy is defined as shown below; the interrupts are numbered starting from the highest priority to the lowest.
w925e/c625 - 40 - table 4 interrupt table. interrupt flag name flag location en bit en bit location priority flag cleared by interrupt vector external interrupt 0 ie0 tcon.1 ex0 ie.0 1 (highest) hardware + software 03h timer0 overflow tf0 tcon.5 et0 ie.1 2 hardware + software 0bh external interrupt 1 ie1 tcon.3 ex1 ie.2 3 hardware + software 13h timer1 overflow tf1 tcon.7 et1 ie.3 4 hardware + software 1bh serial port sf1 scon1.7 es1 ie.6 5 hardware + software 3bh external interrupt 2 ie2 exif.0 ex2 eie.0 6 hardware + software 43h external interrupt 3 ie3 exif.1 ex3 eie.1 7 hardware + software 4bh cid cidf exif.2 ecid eie.2 8 software 53h divider overflow divf exif.3 ediv eie.3 9 hardware + software 5bh compare difference compf exif.4 ecomp eie.4 10 hardware + software 63h watchdog timer wdif wdcon.3 ewdi eie.5 11 (lowest) software 6bh ps: the flags marked as the italic font are not bit-addressable. the interrupt flags are sampled every machine cyc le. in the same machine cycle, the sampled interrupts are polled and their prio rity is resolved. if certain condi tions are met then the hardware will execute an internally generated lc all instruction which will vector the proces s to the appropriate interrupt vector address. the conditions for generating the lcall are 1. an interrupt of equal or higher prio rity is not current ly being serviced. 2. the current polling cycle is the last machine cycle of the instruction currently being executed. 3. the current instruction does not involve a write to ip, ie, eip or eie registers and is not a reti. if any of these conditions is not met, then the lcall will not be generated. the polling cycle is repeated every machine cycle, with the interrupts be ing sampled in the same machine cycle. if an interrupt flag is active in one cycle but not respon ded to, and is not active when the above conditions are met, the denied interrupt will not be serviced. this means that active interrupts are not remembered. note that every polling cycle is new. execution continues from the vect ored address until an reti instruction is executed. on execution of the reti instruction, the processo r pops out the top content of stack to the pc. the processor is not notified anything if the content of stack was changed. note that a ret instruction would perform exactly the same process as a reti instruction, but it would not inform the inte rrupt controller that the interrupt service routine is completed, and would le ave the controller still thin king that the service routine is underway.
w925e/c625 publication release date: july 4, 2005 - 41 - revision a10 6.8 programmable timers/counters the w925e/c625 has 2 16-bit timer/counters. ther e are two 8-bit registers to perform a 16-bit counting register in every timer/counter. in timer/count er 0, th0 is the upper 8 bits register and tl0 is the lower 8 bits register. similarly timer/counter 1 have two 8-bit registers, th1 and tl1. each timer/counter has 4 kind of clock sources which ar e fosc/4, fosc/64, fosc/1024 and fs. there are 3 operating modes in each timer/counter 0 and 1. the ope rating modes of timer/ counter0 is identical to timer/counter1. the overflow signal of each timer/ counter is sampled at phase 2 in every system machine cycle, therefore when the system clock and the timer/co unter clock both are from sub- oscillator, if the overflow frequency is higher than fs/4 the overflow flag can not be sampled correctly. only one overflow flag can be sampled in a machine cycle others will be missed. mode 0 in mode 0, the timer/counters act as 13-bit timer/ counters. the 13 bits consist of 8 bits of thx and lower 5 bits of tlx. the upper 3 bits of tlx are ignored. the negative edge of the clock causes the content of the tlx register to increase one. when the fifth bit in tlx moves from 1 to 0, then the count in the thx register is incremented. when the count in thx moves from ffh to 00h, then the overflow flag tfx is set. the counted input is enabled only if trx is set and either gate=0 or intx =1. when c/ t is set to 0, then it will count clock cycles, and if c/ t is set to 1, then it will count 1 to 0 transitions on t0 (p3.4) for timer 0 and t1 (p3.5) for timer 1. when the 13-bit count reaches 1fffh, the next count will cause it to rollover to 0000h. the timer overflow flag tfx of the relevant timer is set and if enabled an interrupts will occur. note that when they are used as a timer, the bits of t he ckcon1 select the time-base. mode1 mode 1 is similar to mode 0 except that the countin g register forms a 16-bit counter, rather than a 13 bit counter. c/t = tmod.2 (c/t = tmod.6) m1,m0 = tmod.1,tmod.0 (m1,m0 = tmod.5,tmod.4) interrupt t0 = p3.4 (t1 = p3.5) th0 (th1) tl0 (tl1) tf0 (tf1) tr0 = tcon.4 (tr1 = tcon.6) gate = tmod.3 (gate = tmod.7) int0 = p3.2 (int1 = p3.3) 7 0 tfx 4 7 0 00 1 01 0 tm0=ckcon1.2, ckcon1.3 (tm1=ckcon1.4, ckcon1.5) mux 00 01 10 11 ps: functions of timer1 are shown in brackets fosc/4 fosc/64 fosc/1024 fs figure 6-5 mode 0 & mode 1 of timer/counter 0 & 1
w925e/c625 - 42 - mode 2 mode 2 is the auto reload mode. in mode 2, tlx ac ts as an 8-bit count register, while thx holds the reload value. when the tlx register overflows from ffh to 00h, the tfx bit is set and tlx is reloaded with the content of thx, and the counting proces s continues from the reloaded tlx. the reload operation leaves the content of the thx register un changed. counting is controlled by the trx bit and the proper setting of gate and intx pins. buzzer in mode 2, timer 0 can be use to output an arbitr ary frequency to the buz pin by programming bit6 and bit7 of ckcon2. buz pin can be configured as key tone (kt) output by setting buzsl to high. when disable buzzer output by clearing enbuz to low, the buz output is in floating status. in the case where timer 0 clock input is ft, the desired frequency for buz output = ft / (255 ? preset value + 1) / 2 (hz). c/t = tmod.2 (c/t = tmod.6) interrupt t0 = p3.4 (t1 = p3.5) th0 (th1) tl0 (tl1) tf0 (tf1) tr0 = tcon.4 (tr1 = tcon.6) gate = tmod.3 (gate = tmod.7) int0 = p3.2 (int1 = p3.3) 7 0 tfx 7 0 ps: functions of timer1 are shown in brackets 0 1 fosc/4 fosc/64 fosc/1024 fs mux tm0=ckcon1.2, ckcon1.3 (tm1=ckcon1.4, ckcon1.5) 1/2 kt ckcon2.7 =enbuz pin buz floating low 512hz 1024hz 2048hz mux ckcon2.5, ckcon2.4 00 01 10 11 00 01 10 11 ckcon2.6 =buzsl ft from tm0 figure 6-6 mode 2 of timer/counter 0 & 1 when f t equals 32768 hz, depending on the preset value of tm0, the buz pin will output a single tone signal in the tone frequency range from 64 hz to 16384 hz. the relation between the tone frequency and the preset value of tm0 is shown in the table below.
w925e/c625 publication release date: july 4, 2005 - 43 - revision a10 table 5 the relation between the tone frequency and the preset value of tm0 c c # b g f e d a # # d # # g f a e n o t tm0 preset value & buz frequency 3rd octave 4th octave 5th octave 261.63 277.18 293.66 311.13 329.63 349.23 369.99 392.00 415.30 440.00 466.16 493.88 523.25 554.37 587.33 622.25 659.26 698.46 739.99 783.99 830.61 880.00 932.23 987.77 260.06 277.69 292.57 309.13 327.68 348.58 372.35 390.08 420.10 442.81 c1h c5h c8h cbh ceh d1h d4h d6h d9h ddh dbh df h 468.11 496.48 e1h e3h e4h e6h e7h e9h eah ebh ech edh eeh efh 528.51 564.96 585.14 630.15 655.36 712.34 744.72 780.19 819.20 862.84 910.22 963.76 130.81 138.59 146.83 155.56 164.81 174.61 185.00 196.00 207.65 220.00 233.08 246.94 83h 8ah 90h 97h 9dh a2h a7h ach b1h bah b6h beh 131.07 138.84 146.28 156.03 165.49 174.30 184.09 195.04 207.39 221.40 234.05 248.24 tone frequency tone frequency tm0 preset value & buz frequency tone frequency tm0 preset value & buz frequency note: central tone is db (440 hz). watchdog timer the watchdog timer is a free-running timer that can be programmed by the user to serve as a system monitor, a time-base generator or an event timer. it is a set of divider s that divides the system clock. the divider output is selectable and determines the ti me-out interval. in the condition of the timer-out expiring, the wdt interrupt and wdt reset may be ex ecuted if the corresponding enable control bits are set. the interrupt will occur if the individual interrupt enable and the global enable are set. the interrupt and reset functions are independent of eac h other and may be used separately or together depending on the users software. 12 wd1,wd0 00 01 10 11 interrupt reset enable watchdog timer reset ewt(wdcon.1) reset watchdog rwt (wdcon.0) 1 13 15 16 18 19 21 time-out selector wdif wtrf 512 clock delay ewdi(eie.5) fosc fsub wfs(wdcon.4) figure 6-7 watchdog timer
w925e/c625 - 44 - the watchdog timer should first be restarted by using rwt. this ensures that the timer starts from a known state. the rwt bit is used to restart the watc hdog timer. this bit is self clearing, i.e. after writing a 1 to this bit the softwar e will automatically clear it. the watchdog timer will now count clock cycles. the time-out interval is selected by t he two bits wd1 and wd0 (ckcon.7 and ckcon.6). when the selected time-out occurs, the watchdog in terrupt flag wdif (wdcon.3) is set. after the time-out has occurred, the watchdog timer waits fo r an additional 512 clock cycles. the software must issue a rwt to reset the watchdog before the 51 2 clocks have elapsed. if the watchdog reset ewt (wdcon.1) is enabled, then 512 clocks after the time-o ut, if there is no rwt, a system reset due to watchdog timer will occur. this will last for tw o machine cycles, and the watchdog timer reset flag wtrf (wdcon.2) will be set. this indicates to the software that the watchdog was the cause of the reset. when used as a simple timer, the reset and interr upt functions are disabled. the timer will set the wdif flag each time the timer completes the selected time interval. the wdif flag is polled to detect a time-out and the rwt allows software to restart the timer. the watchdog timer can also be used as a very long timer. the interrupt feature is enabled in this case. every time the time-out occurs an interrupt will occur if the global interrupt enable ea is set. table 6 time-out values for the watchdog timer wd1 wd0 watchdog interval number of clocks fosc= 3.579545 mhz fosc= 32768 hz reset of clocks 0 0 2 12 4096 1.14 ms 0.125 s 4608 0 1 2 15 32786 9.15 ms 1 s 33280 1 0 2 18 262144 73.23 ms 8 s 262656 1 1 2 21 2097152 585.87 ms 64 s 2097664 the watchdog timer will de disabled by a power- on/fail reset. the watchdog timer reset does not disable the watchdog timer, but will restart it. in general , software should restart the timer to put it into a known state. the control bits that support the watchdog timer are discussed below. watchdog control wdif: wdcon.3 ? watchdog timer interr upt flag. this bit is set whenever the time-out occurs in the watchdog timer. if the watchdog interrupt is enabl ed (eie.5), then an interrupt will occur (if the global interrupt enable is set and other interrupt requirements are met). software or any reset can clear this bit. wtrf: wdcon.2 ? watchdog timer reset flag. this bit is set whenever a watchdog reset occurs. this bit is useful for determined the cause of a reset. software must read it, and clear it manually. a power-fail reset will clear this bit. if ewt = 0, then this bit will not be affected by the watchdog timer. ewt: wdcon.1 ? enable watchdog timer reset. this bit when set to 1 will enable the watchdog timer reset function. setting this bit to 0 will di sable the watchdog timer reset function, but will leave the timer running
w925e/c625 publication release date: july 4, 2005 - 45 - revision a10 rwt: wdcon.0 ? reset watchdog timer. this bit is used to clear the watchdog timer and to restart it. this bit is self-cle aring, so after the software wr ites 1 to it the hardware will automatically clear it. if the watchdog timer reset is enabled, then the rwt has to be set by the user within 512 clocks of the time-out. if this is not done then a watchdog timer reset will occur. clock control wd1,wd0: ckcon.7, ckcon.6 ? watchdog timer mo de select bits. these two bits select the time-out interval for the watchdog timer. the reset time is longer 512 clocks time than the interrupt time-out value. the default watchdog time-out is 2 12 clocks, which is the shortest time-out period. 6.9 serial port 1 the p4.0 and p4.1 can be used as a 8-bit serial input/output port1. p4.0 is the serial port 1 clock i/o pin and p4.1 is the serial port 1 data i/o pin. the se rial port 1 is controlled by scon1 register which is described as below. sf1: serial port 1 interrupt flag. when 8-bits data is transited completely, sf1 is set by hardware. sf1 is cleared when serial interrupt1 rout ine is executed or cleared by software. ren1: set ren1 from 0 to 1 to start the serial port1 to receive 8-bit serial data. sfq: sfq= 0 serial clock output frequency is equal to f osc /2 sfq= 1 serial clock output frequency is equal to f osc / 256 sedg: sedg= 0 serial data latched at fa lling edge of clock, sclk=low initially. sedg= 1 serial data latched at rising edge of clock, sclk=high initially. clkio: clkio= 0 p4.0(sclk) work as output mode clkio= 1 p4.0(sclk) work as input mode sio: sio= 0 p4.0 & p4.1 work as normal i/o pin sio= 1 p4.0 & p4.1 work as serial port1 function any instruction causes a write to sbuf1 will start the transmission of serial port 1. as the ren1 is from 0 to 1, the serial port 1 begins to receive a by te into sbuf1 in the frequency of the serial clock. ren1 could be cleared by software after receive function begins. the lsb is transmitted/ received first. the i/o mode of serial clock pin is controlled by clkio. user has to take care the initial state of the serial port pins.
w925e/c625 - 46 - c1 c2 c3 c4 p4.0 sf1 ren1 p4.1 123 4 5678 123 4 5678 sedg=1, rising latch p4.0 sedg=0, falling latch note: the serial clock frequency is fosc/2 data input figure 6-8 timing of the serial port 1 input function c1 c2 c3 c4 p4.0 data output sf1 ins. p4.1 123 4 5678 123 4 5678 sedg=1, falling changed p4.0 note: the serial clock frequency is fosc/2 sedg=0, rising changed serial out instruction figure 6-9 timing of the serial port 1 output function
w925e/c625 publication release date: july 4, 2005 - 47 - revision a10 6.10 comparator a built-in comparator to compare the analog signal. there is a analog input paths from pin vneg. two reference inputs, one is from pin vpos and other is from regulator output. when the voltage of positive input is higher than the negative inpu t, the comparator output will be high. the resec(compr.3) is the re sult of the comparison. an intern al rising signal on resc produces interrupt flag of compf (exif.4). the flag compf is cleared when comparator interrupt routine is executed or cleared by software. set compen to enable the comparator function. d ck c3 clr reset d ck resc clr compf=0 exif.4 (compf) compen vneg(p4.2) vpos(p4.4) ref1 x.xv regulator en scon1.5(regon) ref figure 6-10 the configuration of comparator 6.11 dtmf generator w925e/c625 provides a dtmf generator which out puts the dual tone multi-fr equency signal to the dtmf pin. the dtmf generator can work well at the operating frequency of 3.58mhz. a dtmf generator register dtmfg controls the dtmf out put and specifies the desired low/high frequency. the tones are divided into two groups (low group and high group). when the gener ator is disable, the dtmf pin is in tri-state. the relation between the dtmf signal and the corresponding touch tone keypad is shown in figure 6-11. 1 2 3 a 4 5 6 b 7 8 9 c * 0 # d r1 r2 r3 r4 c1 c2 c3 c4 row/col frequency r1 697 hz r2 770 hz r3 852 hz r4 941 hz c1 1209 hz c2 1336 hz c3 1477 hz c4 1633 hz figure 6-11 the relation between dtmf and keypad
w925e/c625 - 48 - bit: 7 6 5 4 3 2 1 0 - dtge he le l1 l0 h1 h0 mnemonic: dtmfgr address: bah l1 l0 h1 h0 selected tone x x 0 0 1209hz x x 0 1 1336hz x x 1 0 1477hz x x 1 1 1633hz 0 0 x x 697hz 0 1 x x 770hz 1 0 x x 852hz 1 1 x x 941hz le: enable low group frequency output. he: enable high group frequency output. dtge: enable dual tone output to dtmf pin. 6.12 fsk generator w925e/c625 provides a fsk generator which output s the fsk signal to the dtmf pin. the fsk output share with dtmf output pin. it can out fsk signal with 1200hz baud rate of itu-t v.23 or bellcore 202 signal. a fsk transmit data register (f sktb) specifies the desi red output data. the fsk transmit control register (fsktc) can control whether the fsk signal will be output or not. the relation timing is shown in figure 6-12. enable signal (fte) latch clock data latch flag data (fsktb) bit0 (fds) fsk signal (dtmf pin) 101100 hi-z hi-z auto clear interrupt occur when rising edge 1011 0 833us [fsf] figure 6-12 fsk modulator
w925e/c625 publication release date: july 4, 2005 - 49 - revision a10 fsk transimt control register (initial=00h) bit: 7 6 5 4 3 2 1 0 fte ftm fds - - - lo1 lo0 mnemonic: fsktc address: c6h fte: fsk transmit enable. enable=1, disable=0 ftm: fsk signal standard. bellcore 202=1, v.23=0 fds: fsk data sending status lo0, lo1: fsk transmit level option fsk output level lo1 lo0 150mv 0 0 120mv 0 1 95mv 1 0 75mv 1 1 fsk transmit data buffer (initial=00h) bit: 7 6 5 4 3 2 1 0 fsktb.7 fsktb.6 fsktb.5 fsktb.4 fsktb.3 fsktb.2 fsktb.1 fsktb.0 mnemonic: fsktb address: c7h fsktb.0: only this bit will be latched and send out as fsk signal when fte enable will set the fds to high to enable the internal latch clock in 1200hz. when fds is in high state, fsktb bit0 will be sent out by fsk modulator at the rising edge of latch clock. fds could be cleared by software to inform no more data will be sent ou t after the last bit is sent completely. if the fds is cleared then fte will become low at next rising latch clock to disable fsk modulator and clear fds by hardware automatically. when fte is set, fsk modulation flag (fsf) will be se t at every rising edge of latch clock to produce an interrupt shared with cid interrupt routine. if a ci d interrupt occurs, user can check fsf to know if this interrupt is caused by fsk modulator. the onl y way to stop fsk signal immediately is to disable fte by software. 6.13 i/o ports there are six 8-bit ports named from p0 to p4 in w9 25e/c625. all ports can be configured as input or output mode. except p0, every port has pull high resi stor enable/disable by pxh register. after reset the initial state of each port is in input mode and t he value of the registers from p0 to p3 are ffh. the i/o port is described as below: p0 : i/o mode is controlled by p0io. only p0 output as open drain mode and without pull high resistor.
w925e/c625 - 50 - p1 : i/o mode is controlled by p1io. pull high is controlled by p1h. p1.0~p1.3 work as int2 , p1.4~p1.7 work as int3 . falling edge on p1 pins to produce int2 and int3 flag. p1 is configured as int2/int3 by p1ef register. p2 : i/o mode is controlled by p2io. pull high is controlled by p2h. p3 : i/o mode is controlled by p3io. pull high is controlled by p3h. p3.5 t1 timer/counter 1 external count input p3.4 t0 timer/counter 0 external count input p3.3 int1 external interrupt 1 p3.2 int0 external interrupt 0 p4 : i/o mode is controlled by p4io. pull high is controlled by p4h. special function of p4 is described below. p4.4 vpos positive input of the comparator p4.2 vneg negative input of the comparator p4.1 sdata serial port output p4.0 sclk serial port input 6.14 divider a built-in 13/14-bit binary up-counter designed to gener ate periodic interrupt. the clock source is from sub-oscillator. when the frequency of sub-crystal is 32768hz, it provides the divider interrupt in the period of 0.25/0.5 second. bit divs controls the degree of divider. when diva is high to enable the divided counter, when diva is low to reset divider and stop counting. as the divider overflows, the divider interrupt flag divf is set. divf is clear by software or serving divider interrupt routine. 13 14 1 overflow divf (exif.3) divs (ckcon1.1) diva (divc.0) fs ck d q cr executing div int clear by software figure 6-13 13/14-bit divider
w925e/c625 publication release date: july 4, 2005 - 51 - revision a10 6.15 lcd 1792 dots: 56 segments x 32 common, 1/5 bias an internal voltage pump is enable/disable by opti on code. the lcd on/off is controlled by bit lcdon (scon1.6). if the voltage pump is enable, when lcdon is high to pump voltage and the lcd waveform is output to lcd pins according the lcd memory, when lcdon is low to turn off the voltage pump. the voltage of internal regulator is the base voltage of the voltage pump which 5 times of the base voltage. the output voltage of the regulator is tunable by 4 bits in regulator voltage control register (regvc). when regvc is equal to 0ah, the output voltage is 1.0v. the higher value of regvc the lower voltage output of regulator. the adjustable voltage range is about from 0.72v to 1.48v . accordingly, the lcd cont rast is controlled by the value of regvc. the variation of the voltage depends on the v dd . following is the table of regvc vs. regulator voltage. regvc 00 01 02 03 04 05 06 07 08 09 0ah 0bh 0ch 0dh 0eh 0fh no loading(3v) 1.497 1.4464 1.3941 1.3426 1.2899 1.238 1.186 1.1352 1.081 1.029 0.976 0.924 0.869 0.815 0.762 0.7112 no loading(5v) 1.500 1.449 1.397 1.345 1.292 1.241 1.188 1.137 1.083 1.031 0.978 0.925 0.87 0.816 0.763 0.712 with lcd loading(3v) 1.46 1.41 1.36 1.31 1.26 1.21 1.16 1.11 1.05 1 0.95 0.9 0.85 0.80 0.75 0.71 with lcd loading(5v) 1.484 1.433 1.381 1.330 1.278 1.227 1.176 1.125 1.072 1.024 0.975 0.926 0.874 0.825 0.773 0.723 lcd frequency the alternating frequency of the lcd can be set as 16hz, 32hz, 64hz and 128hz that are determined by 2 bits of option code. structure of the lcd alternating frequency (f lcd ) is shown in figure 6-14. q1 q2 q3 q4 sub-oscillator clock f lcd 2 bits of option code m u x 00 01 10 11 lcd com waveform generator 32k 16k 8k 4k 2k figure 6-14 lcd alternating frequ ency (flcd) circuit diagram fw = 32.768 khz, the lcd frequency is shown in the table below.
w925e/c625 - 52 - table7 the relationship between the f lcd and the 2 bits option code option code 00 01 10 11 f lcd 16hz 32hz 64hz 128hz lcd ram map the lcd memory address is list as below. each dot is controlled by the corresponding bit and the content high to light the lcd dot and low to off the lcd dot. output s55-s48 s47-s40 s39-s32 s31-s24 s23-s16 s15-s08 s07-s00 bit7-0 bit7-0 bit7-0 bit7-0 bit7-0 bit7-0 bit7-0 com0 2006h 2005h 2004h 2003h 2002h 2001h 2000h com1 200eh 200dh 200ch 200bh 200ah 2009h 2008h com2 2016h 2015h 2014h 2013h 2012h 2011h 2010h com3 201eh 201dh 201ch 201bh 201ah 2019h 2018h com4 2026h 2025h 2024h 2023h 2022h 2021h 2020h com5 202eh 202dh 202ch 202bh 202ah 2029h 2028h com6 2036h 2035h 2034h 2033h 2032h 2031h 2030h com7 203eh 203dh 203ch 203bh 203ah 2039h 2038h com8 2046h 2045h 2044h 2043h 2042h 2041h 2040h com9 204eh 204dh 204ch 204bh 204ah 2049h 2048h com10 2056h 2055h 2054h 2053h 2052h 2051h 2050h com11 205eh 205dh 205ch 205bh 205ah 2059h 2058h com12 2066h 2065h 2064h 2063h 2062h 2061h 2060h com13 206eh 206dh 206ch 206bh 206ah 2069h 2068h com14 2076h 2075h 2074h 2073h 2072h 2071h 2070h com15 207eh 207dh 207ch 207bh 207ah 2079h 2078h com16 2086h 2085h 2084h 2083h 2082h 2081h 2080h com17 208eh 208dh 208ch 208bh 208ah 2089h 2088h com18 2096h 2095h 2094h 2093h 2092h 2091h 2090h com19 209eh 209dh 209ch 209bh 209ah 2099h 2098h com20 20a6h 20a5h 20a4h 20a3h 20a2h 20a1h 20a0h com21 20aeh 20adh 20ach 20abh 20aah 20a9h 20a8h com22 20b6h 20b5h 20b4h 20b3h 20b2h 20b1h 20b0h com23 20beh 20bdh 20bch 20bbh 20bah 20b9h 20b8h com24 20c6h 20c5h 20c4h 20c3h 20c2h 20c1h 20c0h com25 20ceh 20cdh 20cch 20cbh 20cah 20c9h 20c8h com26 20d6h 20d5h 20d4h 20d3h 20d2h 20d1h 20d0h com27 20deh 20ddh 20dch 20dbh 20dah 20d9h 20d8h com28 20e6h 20e5h 20e4h 20e3h 20e2h 20e1h 20e0h com29 20eeh 20edh 20ech 20ebh 20eah 20e9h 20e8h com30 20f6h 20f5h 20f4h 20f3h 20f2h 20f1h 20f0h com31 20feh 20fdh 20fch 20fbh 20fah 20f9h 20f8h
w925e/c625 publication release date: july 4, 2005 - 53 - revision a10 lcd power connection the lcd power connection of bias is shown in figure 6-15 dh1 dh2 vss vlcd4 vlcd5 vlcd3 0.1uf 0.1uf c h i p 1/5 bias regulator c3 c4 c5 c6 c1=c2=c3=c4=c5=c6=0.1uf vlcd2 vlcd1 c1 c2 figure 6-15 1/5 bias lcd power connection lcd waveform the lcd waveform is b type. figure 6-16 is an example for 1/5 bias lcd waveform. com0 com1 com2 com3 lcd outputs for only seg. on com0 & com2 side being lit figure 6-16 lcd waveform for 1/5 bias
w925e/c625 - 54 - 6.16 calling identity delivery (cid) w925e/c625 provides type i and type ii of cid sy stem. type i is on-hook calling with cid message and type ii is off-hook call on waiting. the cid func tion includes fsk decoder, dual tone alert signal detector, ring detector and dtmf receiver. the fsk demodulation function can demodulate bell 202 and itu-t v.23 frequency shift keying (fsk) with 1200 baud rate. the tone alert signal detect function can detect dual tones of bellcore custom er premises equipment(cpe) tone alerting signal(cas) and bt idle state and loop state tone alert signal. the line reversal for bt, ring burst for cca or ring signal for bellcore can be detected by ring detector. it is compatible with bellcore tr- nwt-000030 & st-tsv-002476, british telecom(bt) sin227, u.k. cable communications association(cca) specification. t he dtmf receiver can be programmed as dtmf decoder to decode 16 dtmf signals or tone detector to detect the sig nal which frequency is in dtmf band. the tone detector can be an auxiliary detecto r to improve the performance of detecting tone alerting signal(cas), said as talk down-off, in type ii system. the fsk decoder, alert tone detector and dtmf receiv er can be enable/disable individually by the bits of fske, case and dtmfe in fsk data register(f skdr). cide is the global control bit to enable/disable fsk decoder, alert tone detector and dtmf receiver. however, the ring detector is always active. fsk bandpass filter fsk demodulator fsk data output interface fsk carrier detector guard time circuit bias voltage generator to internal circuit clock driver to internal circuit vref fcd fdr fd7-fd0 cide,rst fm rngdi rngrc vadd vass fske fsk demodulation circuit dual tone alert signal detection circuit ring detector interrupt generator inp1 inn1 gcfb1 algo high tone bandpass filter low tone bandpass filter guard time timer high tone detector low tone detector decode data and latch dtmfd dd3-dd0 date dtmfe est dtmfpt/dtmfa t fdata inp2 inn2 + - anti-alias filter gcfb2 input pre-processor caspt/casa t rng cap pgaf <3:0> + - anti-alias filter input pre-processor pgaf <7:4> pgd <7:4> pgd <3:0> phad<3:0> phfl<7:4> high tone bandpass filter low tone bandpass filter high tone detector low tone detector phad<7:4> phfl<3:0> cidgd cidga ps: the signals noted in italic and underline type are cid pins on the chip. figure 6-17 the cid block diagram
w925e/c625 publication release date: july 4, 2005 - 55 - revision a10 ring detector the application circuit in figure 6-18 illustrates the relationship between the rngdi, rngrc and rng signals. the combination of rngdi and rngrc is used to detect an increase of the rngdi voltage from ground to a level above the schmitt trigger high going threshold voltage v t+ . tip/a r1=470k c1=0.1uf ring/b c1=0.1uf c3=0.22uf r5=150k r2=470k r3=200k r4=300k rngdi rngrc rng allowance minimal ring voltage (peak to peak) is: vpp (max ring) = 2 (v t+(max) (r1 + r3 + r4) / r4 + 0.7) tolerance to noise between tip and ring and vss is: vpeak (max noise) = v t+(min) (r1 + r3 + r4) / r4 + 0.7 time constant is: t = r5 c3 ln [vdd / (vdd - v t+ )] v t+(min) <= v t+ <= v t+(max) r5 from 10k ohm to 500k ohm. c3 from 47 nf to 0.68 uf. figure 6-18 application circ uit of the ring detector the rc time constant of the rngr c pin is used to delayed the output pulse of the rng flag for a low going edge on rngdi. this edge goes from above the v t+ voltage to the schmitt trigger low going threshold voltage v t- . the rc time constant must be greate r than the maximum period of the ring signal, to ensures a minimum rng high interval and to filter the ring signal to get an envelope output. the rising signal of rng will set the bit rngf(c idfg.0) high to cause the cid flag(cidf) high. the diode bridge shown in figure 6-18 works for both single ended ring signal and balanced ringing. the r1 and r2 are used to set the maximum loading and must be of equal value to achieve balanced loading at both the tip and ring line. r1, r3 and r4 fo rm a resistor divider to supply a reduced voltage to the rngdi input. the attenuation value is deter mined by the detection of minimal ring voltage and maximum noise tolerance between tip/ring and ground.
w925e/c625 - 56 - input pre-processor the input signal is processed by input pre-processor, which is comprised of two op amps and a bias source(vref). the gain op-amps are used to bias the input voltage with the vref signal voltage. vref is v ad /2 typically, this pin is recommended to connect a 0.1 uf capacitor to v as . the gain adjustable op amps are sued to select the input gain by connecting a feedback resistor between gcfb and inn pins. figure 6-19 shows the different ial input configuration and figure 6-20 shows the single-ended configuration. + - inp inn vref c1 c2 r1 r2 r3 r4 0.1uf r5 differential input amplifier c1 = c2 r1 = r2 r3 = (r4 r5) / (r4 + r5) voltage gain av = r5 / r1 input impedance zin = 2 r1 + (1 / wc) 22 gcfb figure 6-19 differential input gain control circuit + - inp inn vref c r1 0.1uf r2 voltage gain av = r2 / r1 gcfb 22n figure 6-20 single-ended input gain control circuit
w925e/c625 publication release date: july 4, 2005 - 57 - revision a10 cas/dtas detection in off-hook services (type ii), the detection of ca s/dtas will affect the quality of the call waiting service. when the cas/dtas is sent from far end, sometimes the near end user maybe still talking. the cpe must be able to detect the cas/dtas successf ully in the presence of near end speech. to detect cas/dtas from telephone hybrid receiver pair improves the detection. however in bt?s on- hook cid system the cas/dtas detection is from tip/ring pair. the dual tone alert signal is separated into high and low tones and detected by a high/low tone detector. when the alert tone is recognized by t he detector, the bit algo will go high and the rising signal will set the bit algof in cidfg to produc e the cid flag(cidf). figu re 6-21 shows the guard time waveform of detecting alert tone. the total recognition time is t rec =t dp +t gp , where t dp is the tone present detect time and t gp is the tone present guard time. the total absent guard time is t abs =t da +t ga where t da is the tone absent detect time and t ga is the tone absent guard time. the tone present/absent guard time is determined by guard-time timer which the input clock period is 0.858ms. when the alert tone is detected the internal signal algr will be set and the rising edge of algr resets the guard-time timer and the timer starts up counting from 00h. as the content of the timer is the same as the register caspt, the timer stop s counting and the bit al go will be set and the rising edge of algo triggers the flag algof to become high. the counting of tone absent time is similar to the counting of tone present time but the falling edge of algr/ algo replaces the rising edge and the casat replaces the caspt. the bit algo is contro lled by hardware only. th e flag algof is set by rising edge of algo and cleared by software. algr vin dual alert tone signal t dp t gp t da t ga * 1: guard time timer is reset and starts to up count from 00h. 2: guard time timer is reset and starts to up count from 00h. 3: the content of the guard-time timer reaches the content of aspt/asat. t rec t abs 12 33 *algr is an internal signal in the uc. + clear by software. algo algof + 1 t dp t da figure 6-21 guard time waveform of alert tone signal detection
w925e/c625 - 58 - dtmf decoder the dtmf decoder shares the same input pre-processor with fsk decoder. the dual tone is separated into low group and high group by two scfs (switched capacitor filter. the method of dtmf detection is the same as alert tone detection. the present/absent guard time is adjusted by registers dtmfpt/dtmfat. as the dtmf signal is recognized and decoded, the bit dtmfd will be set and the decoded dtmf data is stored in bit0 to bit3 of register dtmfdr. the rising edge of dtmfd produces the flag dtmfdf. the bit dtmfd is controlled by ha rdware only. the flag dtmfdf is set by rising edge of dtmfd and cleared by software. est vin (tip/ring) tone #n t dp t gp t rec t da t ga t abs dtmfd * 12 33 dtmfdr tone #n-1 tone #n * est is an internal signal in the circuit. + clear by software. 1: guard time timer is reset and starts to up count from 00h. 2: guard time timer is reset and starts to up count from 00h. 3: the content of the up counting timer reaches the register dtmfpt/dtmfat. dtmfdf + figure 6-22 the waveform of dtmf detection tone detector in off-hook state, said type ii system, detecting t one alert signal(cas) is easily interfered by human?s voice or other noise in voice band. sometimes the in terference makes falsely recognizing a noise as a cas(talk-off), or lost detecting a real cas(talk-down). the dtmf can be programmed as a tone detector by setting bit 4 of dtmfr2. the frequency b and of the tone detector is dtmf frequency from 697hz to 1633hz. once the tone detector gets sig nals in the band, the bit of dtmfh or dtmfl in register dtmfdr will become high immediately. user can poll these 2 bits to check if the tone exists on the tip/ring. the input gain of tone detector is the same as dtmf receiver. fsk decoder the fsk carrier detector provides an indication of the present of a signal within the fsk frequency band. if the output amplitude of the fsk band-pass filt er is sufficient to be detected continuously for 8 ms, the fsk carrier detected bit fcd will go high and it will be released if the fsk band-pass filter output amplitude is not able to be detected for greater than 8 ms. the 8 ms is the hysteresis of the fsk carrier detector. figure 6-23 shows the timing of fsk carrier detection.
w925e/c625 publication release date: july 4, 2005 - 59 - revision a10 tip/ring fcd analog fsk signal t cp t ca fske t fske analog fsk signal t cp t ca note figure 6-23 fsk detection enable and f sk carrier present and absent timing the fsk demodulation function can demodulate bell 202 and itu-t v.23 frequency shift keying (fsk) with 1200 baud rate. when the decoder receives the fsk serial data, the serial data will be demodulated into bit fdata with 1200 baud rate in the mean time the synchronous clock signal is output to the bit fclk. as the decoder receives one by te, the internal serial-to-parallel circuit sets the bit fdr and converts the 8-bit serial data into the byte register fskdr. the rising edge of bit fdr will set the flag fdrf to produce cid interrupt but fd rf is cleared by software. user can get the fsk data by reading register fskdr or sampling the bit fdata. the timing of fsk demodulation is shown in figure 6-24. tip/ring 1*10b0b1b2 start b3 b4 b5 b6 b7 1* 0 b0 b1 b2 b3 b4 b5 b6 b7 1 10b0 stop start stop start fdata b0 b1 b2 b3 b4 b5 b6 b7 b0 b1 b2 b3 b4 b5 b6 b7 start stop start stop start t idd fclk fdr 1/f dclk0 t crd t rh 1st byte data 2nd byte data 1st byte data 2nd byte data * mark bit or redundant stop bit(s), will be omitted. + clear by software. fdrf + fskdr 1st byte data 2nd byte data figure 6-24 serial data interf ace timing of fsk demodulation
w925e/c625 - 60 - cid input gain control the cid input gain and input hysteresis are controllab le by internal cid gain control registers. cidgd and cidga registers determine the 6 in ternal cid gain control registers. cid gain control data register (cidgd) presents the data bus. the lower 3 bits of cid gain control address register (cidga) presents the address. the rising edge of cidga.4 w ill latch the cidgd in the corresponding internal cid gain control register. the 6 internal cid gain control registers are addressed as following table. setting the 6 registers as the suggest ion value guarantees the cid spec. address (cidga.2-0) internal cid gain control register suggestion value 000 dtmfr1 : dtmf register1 0000 0001b 001 dtmfr2 : dtmf register2 011x 0001b 002 pgaf : programmable gain control alert tone and fsk 99h 003 pgad : programmable gain control dtmf a7h 004 phad : programmable hysteresis alert tone and dtmf 35h 005 phfl : programmable hysteresis fsk and low pass filter 33h x=0 dtmf receiver works a dtmf decoder, x=1 dtmf receiver works as a tone detector. the signals to set internal cid gain cont rol registers is shown in figure 6-25 cidgd cidga<2:0> cidga.3 cidgd cidga rising latch figure 6-25 internal cid gain control register setting waveform
w925e/c625 publication release date: july 4, 2005 - 61 - revision a10 ifx opc-9 dtmfr1 dtmfr1[7:4] are reserved bits and must be 0000b. bit3~bit0 acceptable error percentage to sample 4 period of row freq. 0000 0.6% (default) 0001 2.5% 001x 3.5% 01xx reserved 1xxx reserved dtmfr2 bit3~bit0 acceptable error percentage to sample 4 period of col freq. 0000 0.5% (default) 0001 1.5% 001x 2.5% 01xx reserved 1xxx reserved the acceptable error percentage may have sma ll variation by different test environments. dtmfr2.4=0 dtmf receiver works as a dtmf receiver dtmfr2.4=1 dtmf receiver works as a tone detector dtmfr2.5=0 dtmf pt counter is up counter type, ch ange of detected frequency does not effect counter dtmfr2.5=1 dtmf pt counter is up counter type, ch ange of detected frequency resets dtmf pt counter dtmfr2.6=0 dtmf at counter is up-down counter ty pe, up counting when no dtmf detected, down counting if dtmf detected again. dtmfr2.6=1 dtmf at counter is up counter type, up counting when no dtmf detected, pause counting if dtmf detected again. dtmfr2.7: reserved
w925e/c625 - 62 - there are 4 programmable gain arrays, shown in fi gure 6-17, are determined by low/high nibbles of pgxx. the following table lists the input gain co rresponding to the value of l/h nibble of pgxx. x 20 log((40+15*x)/(230-(40+15*x))) db x 20 log((40+15*x)/(230-(40+15*x))) db 0 -13.53 6 2.28 1 -10.05 7 4.64 2 -7.18 8 7.18 3 -4.64 9 10.05 4 -2.28 10 13.53 5 0.00 x is the value of l/h nibble of pgxx there are 4 programmable hysteresis input buffer, sh own in figure 6-17, are determined by low/ high nibbles of phxx. the hysteresis control formulas are list below. alert tone hysteresis hat=13mv + 3mv*x x=phad<7:4> dtmf hysteresis hdtmf=6mv + 3mv*x x=phad<3:0> fsk hysteresis hfsk=13mv + 3mv*x x=phfl<7:4> fsk detector hysteresis hfskd=13mv + 3mv*x x=phfl<3:0> application circuit the analog interface circuit of w925e/c625 shown in figure 6-26 is a typical cpe system. the gain control op-amp is set to unit gain to allow the electr ical characteristics to be met in this application circuit. 34k 34k 430k 430k 22nf 22nf 53k6 60k4 464k inp2 inn2 gcfb2 vref cap rngdi rngrc inp1 0.1uf 470k 470k 0.1uf 0.1uf 200k 100k 150k tip/a ring/b inn1 gcfb1 464k 464k 464k 60k4 60k4 464k speech network speaker microphone tx+ tx- rx+ rx- tip ring resistor must have 1% tolerance resistor must have 5% tolerance 0.47u 22nf 22nf figure 6-26 applicati on circuit of cid
w925e/c625 publication release date: july 4, 2005 - 63 - revision a10 application environment there are three major timing differences for cid seq uences, bellcore, bt and cca. figure 6-27 is the timing diagram for bellcore on-hook data transmission and figure 6-28 is the timing diagram for the bellcore off-hook data transmission. figure 6-29 is th e timing diagram for the bt caller display service on-hook data transmission and figure 6-30 is the timing diagram for the bt caller display service off- hook data transmission. figure 6-31 is the timing diagram for the cca caller display service for on- hook data transmission. the cid flag (cidf) must be cleared by software when each time the cid interrupt routine is serviced. the cid glo bal enable signal (cide) must be set high. tip/ring rng fske fcd fdr fclk fdata 1st ring ch. seizure mark message 2nd ring a ... ...101010... bcd e f data ... cidf ... ... a = 2 sec typical b = 250-500ms c = 250ms d = 150ms e = depend on data length max c+d+e = 2.9 to 3.7 sec f >= 200ms figure 6-27 input and output timing of bellcore on-hook data transmission
w925e/c625 - 64 - tip/ring fske fcd fdr fclk fdata algo cpe unmutes handset and enable keypad g cas t rec t abs ab ack c cpe goes off-hook de f mark message cpe sends cpe mutes handset & disables keypad ... data cidf ... a = 75 - 85ms b = 0 - 100ms c = 55 - 65ms d = 0 - 500ms e = 58 - 75ms f = depends on data length g <= 50ms ase figure 6-28 input and output timing of bellcore off-hook data transmission
w925e/c625 publication release date: july 4, 2005 - 65 - revision a10 a/b wires rngon ase algo te dc load te ac load fske fcdn fdrn dclk data line reversal alert signal ch. seizure mark message ring t rec t abs 15 1 ms 20 5 ms abc defg ... ... ...101010... data note 1 50 - 150 ms note 2 note 3 < 120ua zss (refer to sin227) current wetting pulse (refer to sin227) cidf ... ... < 0.5 ma (optiona) a >= 100ms b = 88 - 100ms c >= 45ms (up to 5sec) d = 80 - 262ms e = 45 - 75ms f <= 2.5s (500ms typical) g >= 200ms figure 6-29 input and output timing of bt idle state (on-hook) data transmission notes: 1. sin227 specifies that the ac and dc loads should be applied at 20 5ms after the end of the dual tone alert signal. 2. sin227 specifies that the ac and dc loads should be removed between 50 ? 150ms after the end of the fsk signal. 3. the fske bit should be set low to disable the fsk decoder when fsk is not expected. th e tone alerting signal speech and the dtmf tones are in the same frequency band as the fsk signal.
w925e/c625 - 66 - tip/ring fske fcd fdr fclk fdata algo cpe unmutes handset and enable keypad h cas t rec t abs bc ack d cpe goes off-hook ef g mark message cpe sends cpe mutes handset & disables keypad ... data cidf ... a = 40 - 50ms b = 80 - 85ms c <= 100ms d = 65 - 75ms e = 5 - 100ms f = 40 - 75ms g = depends on data length h <= 100ms ase start point a note 1 note 3 note 2 note 4 note 5 figure 6-30 input and output timing of bt loop state (off-hook) data transmission notes: 1. in a cpe where ac power is not available, the designer may choose to switch over to line power when the cpe goes off-hook and use battery power while on-hook. 2. the fske bit may be set low to prevent the alert tone, speech or other fsk in-band noise decoded by fsk demodulator and give false data when the dual tone alert si gnal is expected. if the fske pin can not controlled by micro-controller, the fske bit must always placed in high st ate and the micro controller must give up the fsk decoded data when the fsk signal is not expected. 3. the exchange will have already disabl ed the speech path to the distant custom er in both transmission directions. 4. the fske should be set high as soon as the c pe has finished sending t he acknowledge signal ack. 5. the fske may be set low after the last byte (check sum) has been decoded or fcd has become inactive. 6. in an unsuccessful attempts where the exchange does not send the fsk signal, the cpe should disable fske, un-mute the handset and enable the keypad after this interval.
w925e/c625 publication release date: july 4, 2005 - 67 - revision a10 a/b wires rng cide te dc load te ac load fske fcd fdr fclk fdata line reversal ring burst ch. seizure mark message first ring cycle ab cde f ... ... ...101010... data note 2 note 3 note 4 cidf ... ... 250 - 400 ms 50 - 150 ms note 1 a = 200 - 450ms b >= 500ms c = 80 - 262ms d = 45 - 262ms e <= 2.5sec (500ms typical) f >= 200ms figure 6-31 input and output timing of cca caller display service data transmission notes: 1. the cpe designer may choose to set fske always high wh ile the cpe is on-hook and the fsk signal is expected. 2. tw/p & e/312 specifies that the ac and dc loads shoul d be applied between 250 ? 400 ms after the end of the ring burst. 3. tw/p & e/312 specifies that the ac and dc loads shoul d be removed between 50 ? 150 ms after the end of the fsk signal. 4. the cid may not be enable up at the first ri ng cycle after the fsk data had been processed.
w925e/c625 - 68 - 7. electrical characteristics 7.1 maximum ratings* (voltage referenced to vss pin) parameter symbol rating units 1 supply voltage with respect to v ss v dd -0.3 to 6 v 2 voltage on any pin other than supplies (note 1) -0.7 to v dd + 0.7 v 3 current at any pin other than supplies 0 to 10 ma 4 storage temperature tst -65 to 150 note: *. exposure to conditions beyond those listed under absolute maxi mum ratings may adversely affect the lift and reliability of t he device. 1. v dd + 0.7 should not excess maximum rating of supply voltage. 7.2 recommended operating conditions characteristics symbol rating unit power supplies (analog) v ad 3.0 to 6.0 v power supplies (digital) eeprom(e) type(depend on option) maski type v dd 2.4 to 3.6 or 3.0 to 5.5 2.2 to 6.0 v main clock frequency f osc 3.579545 mhz sub clock frequency f sub 32768 hz tolerance on clock frequency ? f c -0.1 to +0.1 % operation temperature t op 0 to 75 c
w925e/c625 publication release date: july 4, 2005 - 69 - revision a10 7.3 dc characteristics parameter symbol condition min. typ* max. unit note i op1 fsk on, dual clock, normal run 2.8 ma i op2 fsk off, dual clock, normal run 1.3 ma i op3 fsk off, slow run, main osc stopped 50 a i op4 idle mode, dual clock 500 a i op5 idle mode, main osc stopped 50 a operating current i op6 power down mode 1 a i/o ports input high voltage v ih 0.7v dd v dd v i/o ports input low voltage v il v ss 0.3v dd v i/o ports output high voltage v oh i oh = 2.0ma 2.4 - - v i/o ports output low voltage v ol i ol = 2.0ma - - 0.4 v buz pin output high voltage v boh i oh = 3.5ma 2.4 - - v buz pin output high voltage v bol i ol = 3.5ma 0.4 - - v lcd on current i lcd all seg. on 20 35 a dtmf output dc level v tdc r l = 5k ? , v dd = 2.5-3.8 1.1 - 2.8 v dtmf distortion dthd r l = 5k ? , v dd = 2.5-3.8 - -30 -23 db dtmf output voltage v to low group, r l = 5k ? 130 150 170 mv rms pre-emphasis col/row 1 2 3 db fsk distortion fthd r l = 5k ? , v dd = 2.5-3.8 - - -30 db
w925e/c625 - 70 - dc characteristics, continued parameter symbol condition min. typ* max. unit note fsk output voltage v fd r l = 5k ? 75 150 170 mv rms port pull high resistor r ph 100 360 1000 k ? schmitt input high threshold v t+ rngdi, rngrc 0.48v ad - 0.68v ad v schmitt input high threshold v t- rngdi, rngrc 0.28v ad - 0.48v ad v schmitt hysteresis v hys rngdi, rngrc 0.2 v rngrc low sink current i rngl rngrc 2.5 ma input current i in inpx, innx, rngdi - - 1 a reference output voltage v ref vref 0.5v ad ?4% - 0.5v ad + 4% v no load reference output resistance r ref vref - - 2 k ? *. typical figure are at v dd = 3v and temperature = 25 . 7.4 electrical characteristics ? gain control op-amplifier (electrical characteristics supersede the recommended operating conditions unless otherwise stated.) parameter symbol min. typ ? max. units test conditions input leakage current i in 1 a v ss v in v dd input resistance r in 10 m ? input offset voltage v os 25 mv power supply rejection ratio psrr 40 db 1 khz 0.1 vpp ripple on v dd maximum capacitive load (gcfbx) c l 100 pf maximum resistive load (gcfbx) r l 50 k ? note: ? ? ? typical figure are at v dd = 5v and temperature = 25 are design aids only, not guaranteed and not subject to production testing.
w925e/c625 publication release date: july 4, 2005 - 71 - revision a10 7.5 ac characteristics (ac timing characteristics supersede the recommended operating conditions unless otherwise stated.) dual tone alert signal detection interface parameter symbol min typ max units notes low tone frequency f l 2130 hz high tone frequency f h 2750 hz frequency deviation accept 1.1 % 3 frequency deviation reject 3.5 % 4 maximum input signal level 0.22 dbm a input sensitivity per tone -40 -38 dbm 5 reject signal level per tone -48 dbm 5 positive and negative twist b accept 7 db noise tolerance snr tone 20 db 1, 2 notes: a. dbm = decibels with a reference power of 1 mw into 600 ohms, 0 dbm = 0.7746 vrms. b. twist = 20 log (f h amplitude / f l amplitude). 1. both tones have the same amplitude. both tones are at the nominal frequencies. 2. band limited random noise 300 ? 3400 hz. present only when tone is present. 3. range within which tones are accepted. 4. ranges outside of which tones are rejected. 5. these characteristics are at v dd = 5v and temperature = 25 . dual tone alert signal detection parameter condition symbol min. typ ? max. units notes alert signal present detect time t dp 0.5 10 ms alert signal absent detect time algr t da 0.1 8 ms ? ? ? typical figure are at v dd = 5v and temperature = 25 are design aids only, not guarant eed and not subject to production testing.
w925e/c625 - 72 - fsk detection interface parameter sym. min. typ max. units notes input frequency detection bell 202 mark (logic 1) bell 202 space (logic 0) itu-t v.23 mark (logic 1) itu-t v.23 space (logic 0) f mark f space f mark f space 1188 2178 1280.5 2068.5 1200 2200 1300 2100 1212 2222 1319.5 2131.5 hz +/- 1 % +/- 1 % +/- 1.5 % +/- 1.5 % maximum input signal level -5.78 dbm input sensitivity -43 dbm 1, 3 transmission rate 1188 1200 1212 baud input noise tolerance snr tone 20 db 1, 2 notes: 1. both mark and space have the same amplitude. both mark and space are at the nominal frequencies. 2. band limited random noise 300 ? 3400 hz. present only when fsk signal is present. 3. these characteristics are at vdd = 5v and temperature = 25 . fsk detection parameter condition sym. min. typ ? max. units notes fsk detection enable time fske t fsk 25 ms input fsk to fcd high delay t cp 25 ms input fsk to fcd low delay fcd t ca 8 ms data ready ack time fdr t dr 415 416 417 us 2 rate 1188 1200 1212 bps 1 input fsk to data delay data t idd 1 5 ms frequency f dclk 1201.6 1202.8 1204 hz 2 high time t ch 415 416 417 us 2 low time dclk t cl 415 416 417 us 2 dclk to fdr delay dclk, fdr t crd 415 416 417 us 2 notes: 1. fsk input data rate at 1200 +/- 12 baud. 2. osci frequency at 3.579545 mhz +/- 0.1%. ? ? ? typical figure are at v dd = 5v and temperature = 25 are design aids only, not guarant eed and not subject to production testing.
w925e/c625 publication release date: july 4, 2005 - 73 - revision a10 dtmf decoder parameter sym. min. typ max. units notes input sensitivity per tone -29 1 dbm 1,2 positive and negative twist accept 7 db 1,2 frequency deviation accept 1.5 % 1,2 frequency deviation reject 3.5 % 1,2 3 rd tone tolerance -16 db 1,2,3 noise tolerance -12 db 1,2,3 dial tone tolerance 22 db 1,2,4 notes: 1. signal consists of all dtmf tones. 2. tone duration is 40ms at least, tone pause duration is 40ms at least. 3. referenced to the lowest level frequency component in dtmf signal. 4. referenced to the minimum valid accept level. dtmf detection interface parameter condition sym. min. typ ? max. units notes dtmf present detect time t fp 0.5 8 ms dtmf absent detect time est t fa 0.1 8 ms dtmf detected duration dtmfd = 1 t dd 40 ms dtmf signal ignore time dtmfd = 0 t di 20 ms dtmf pause accept time dtmfd = 1 t dpa 20 ms ? ? ? typical figure are at v dd = 5v and temperature = 25 are design aids only, not guarant eed and not subject to production testing.
w925e/c625 - 74 - 8. package 160l qfp (28 x 28 mm footprint 3.2mm) h d d e e h e y a a seating plane l l 1 see detail f detail f c 1 a 2 b 1 40 41 80 81 120 121 160 0.10 010 10 0 0.004 1.60 0.95 0.80 0.65 0.063 0.037 0.031 0.025 31.50 31.20 30.90 1.240 1.228 1.217 0.65 28.13 28.13 0.25 0.40 3.35 3.68 28.00 28.00 3.23 27.87 27.87 0.10 0.20 3.10 0.10 1.107 1.107 0.010 0.016 0.132 0.145 1.102 1.102 0.127 0.026 1.097 1.097 0.004 0.008 0.122 0.004 symbol min nom max max nom min dimension in inch dimension in mm a b c d e h d h e l y a a l 1 1 2 e 0.012 0.006 0.15 0.30 0.022 0.055 0.030 0.071 0.55 0.75 1.40 1.80 control dimensions are in mm 31.50 31.20 30.90 1.240 1.228 1.217
w925e/c625 publication release date: july 4, 2005 - 75 - revision a10 9. revision history revision date modification a6 - 1. add initial state of registers 2. modify description of wdcon.0 3. modify fig6-22 a7 - 1. modify the c?s operating volt. in features and operating conditions. 2. modify the pmr initial data 3. modify the lcd circuit diagram a8 may 20, 2003 1. add fsys low-speed-clock switch as high-speed-clock application note. page-27 a9 mar 1, 2005 1. modify movx instruction machine cycles data. a10 july 4, 2005 1. add lead free package part number. 2. modify eif to exif. important notice winbond products are not designed, intended, authorized or warranted for use as components in systems or equipment intended for surg ical implantation, at omic energy control instruments, airplane or spaceship instruments, transportation instruments, traffic signal instruments, combustion control instruments, or for other applications intended to support or sustain life. further more, winbond products are not intended for applications wherein failure of winbond products could result or lead to a situation wherein personal injury, death or severe property or environmental damage could occur. winbond customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify winbond for any damages resulting from such improper use or sales. headquarters no. 4, creation rd. iii, science-based industrial park, hsinchu, taiwan tel: 886-3-5770066 fax: 886-3-5665577 http://www.winbond.com.tw/ taipei office tel: 886-2-8177-7168 fax: 886-2-8751-3579 winbond electronics corporation america 2727 north first street, san jose, ca 95134, u.s.a. tel: 1-408-9436666 fax: 1-408-5441798 winbond electronics (h.k.) ltd. no. 378 kwun tong rd., kowloon, hong kong fax: 852-27552064 unit 9-15, 22f, millennium city, tel: 852-27513100 please note that all data and specifications are subject to change without notice. all the trade marks of products and companies mentioned in this data sheet belong to their respective owners. winbond electronics (shanghai) ltd. 200336 china fax: 86-21-62365998 27f, 2299 yan an w. rd. shanghai, tel: 86-21-62365999 winbond electronics corporation japan shinyokohama kohoku-ku, yokohama, 222-0033 fax: 81-45-4781800 7f daini-ueno bldg, 3-7-18 tel: 81-45-4781881 9f, no.480, rueiguang rd., neihu district, taipei, 114, taiwan, r.o.c.


▲Up To Search▲   

 
Price & Availability of W925C625

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X